From 76791333c791f7e8655bd4e4808f77c81fa91f8a Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 14 May 2017 10:11:17 +0200 Subject: [PATCH] fixed toggle to debug mode --- js/gamepad.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/gamepad.js b/js/gamepad.js index 9db7b79..0d06c18 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -152,8 +152,6 @@ class Gamepad { } mapGamepad(gamepadIndex) { - this.removeGamepad(); - this.activeGamepadIndex = gamepadIndex; const gamepad = this.gamepads[this.activeGamepadIndex]; @@ -348,7 +346,6 @@ class Gamepad { this.debug = !this.debug; // remap current gamepad - this.removeGamepad(); this.mapGamepad(this.activeGamepadIndex); } }