Move patchPollGamepads code to external file

This commit is contained in:
redphx
2024-05-23 06:55:41 +07:00
parent e18e05589a
commit 22e29e1d92
4 changed files with 25 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
const currentGamepad = ${gamepadVar};
if (currentGamepad.buttons[17] && currentGamepad.buttons[17].value === 1) {
window.dispatchEvent(new Event(BxEvent.CAPTURE_SCREENSHOT));
}