removed dummy condition checking in scanGamepads
This commit is contained in:
parent
60d0921fc3
commit
8a1a661c3b
@ -134,7 +134,7 @@ class Gamepad {
|
|||||||
let button;
|
let button;
|
||||||
for (let buttonIndex = 0; buttonIndex < gamepad.buttons.length; buttonIndex++) {
|
for (let buttonIndex = 0; buttonIndex < gamepad.buttons.length; buttonIndex++) {
|
||||||
button = gamepad.buttons[buttonIndex];
|
button = gamepad.buttons[buttonIndex];
|
||||||
if (null === this.activeGamepadIndex && button.pressed) {
|
if (button.pressed) {
|
||||||
this.mapGamepad(gamepad.index);
|
this.mapGamepad(gamepad.index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user