removed dummy condition checking in scanGamepads

This commit is contained in:
e7d 2017-05-14 11:17:06 +02:00
parent 60d0921fc3
commit 8a1a661c3b

View File

@ -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);
} }
} }