mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-12-19 13:36:59 +01:00
Minor optimization for the shortcuts feature
This commit is contained in:
@@ -69,9 +69,9 @@ export class ControllerShortcut {
|
||||
otherButtonPressed = true;
|
||||
pressed[index] = true;
|
||||
|
||||
// If this is newly pressed button > run action
|
||||
// If this is newly pressed button -> run action
|
||||
if (actions[index] && !ControllerShortcut.#buttonsCache[gamepadIndex][index]) {
|
||||
ControllerShortcut.#runAction(actions[index]!);
|
||||
setTimeout(() => ControllerShortcut.#runAction(actions[index]!), 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user