From 8a1a661c3b7cc666b06715fcf5467b1f73ac1944 Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 14 May 2017 11:17:06 +0200 Subject: [PATCH] removed dummy condition checking in scanGamepads --- js/gamepad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gamepad.js b/js/gamepad.js index 4138885..2a0f649 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -134,7 +134,7 @@ class Gamepad { let button; for (let buttonIndex = 0; buttonIndex < gamepad.buttons.length; buttonIndex++) { button = gamepad.buttons[buttonIndex]; - if (null === this.activeGamepadIndex && button.pressed) { + if (button.pressed) { this.mapGamepad(gamepad.index); } }