From 62befd88db50ab6c88f03a0a06b8d622a4534f94 Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 14 May 2017 11:34:24 +0200 Subject: [PATCH] fixed active gamepad removal on keyboard press --- js/gamepad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gamepad.js b/js/gamepad.js index 14dfc2e..5d85f92 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -72,7 +72,7 @@ class Gamepad { switch (e.code) { case "Delete": case "Escape": - this.removeGamepad(); + this.removeGamepad(this.activeGamepadIndex); break; case "KeyC": this.changeGamepadColor();