Comment Comment by lima Nice writeup! I probably would've kept unplugging my joystick for years. Impressive how good of a job Ghidra's decompiler did on libcef - this is almost on par with HexRays.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. parent lima 6 years ago
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.