Allow controlling settings using gamepad

This commit is contained in:
redphx
2024-07-16 21:52:44 +07:00
parent 2a0af5d0ab
commit 64568532cb
5 changed files with 129 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
if (window.BX_EXPOSED.disableGamepadPolling) {
this.inputConfiguration.useIntervalWorkerThreadForInput && this.intervalWorker ? this.intervalWorker.scheduleTimer(4) : this.pollGamepadssetTimeoutTimerID = setTimeout(this.pollGamepads, 4);
return;
}
const currentGamepad = ${gamepadVar};
// Share button on XS controller