by lima · 5y ago · 0 comments
Chromium is open source, so we can take a look at the source code:
https://source.chromium.org/chromium/chromium/src/+/master:d...
(it's actually the wrong function - StopMonitor - but it references the same DeviceUsages constant that StartMonitor uses so it still worked)
Nvidia probably uses the Gamepad API in whatever they use CEF for:
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API...
A more stable patching approach would be to find the JS sources and patch that.