mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 04:46:42 +02:00
Move patchPollGamepads code to external file
This commit is contained in:
5
src/modules/patches/controller-shortcuts.js
Normal file
5
src/modules/patches/controller-shortcuts.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const currentGamepad = ${gamepadVar};
|
||||
|
||||
if (currentGamepad.buttons[17] && currentGamepad.buttons[17].value === 1) {
|
||||
window.dispatchEvent(new Event(BxEvent.CAPTURE_SCREENSHOT));
|
||||
}
|
Reference in New Issue
Block a user