fixed toggle to debug mode

This commit is contained in:
e7d 2017-05-14 10:11:17 +02:00
parent 121ee8942a
commit 76791333c7

View File

@ -152,8 +152,6 @@ class Gamepad {
} }
mapGamepad(gamepadIndex) { mapGamepad(gamepadIndex) {
this.removeGamepad();
this.activeGamepadIndex = gamepadIndex; this.activeGamepadIndex = gamepadIndex;
const gamepad = this.gamepads[this.activeGamepadIndex]; const gamepad = this.gamepads[this.activeGamepadIndex];
@ -348,7 +346,6 @@ class Gamepad {
this.debug = !this.debug; this.debug = !this.debug;
// remap current gamepad // remap current gamepad
this.removeGamepad();
this.mapGamepad(this.activeGamepadIndex); this.mapGamepad(this.activeGamepadIndex);
} }
} }