fixed toggle to debug mode
This commit is contained in:
parent
121ee8942a
commit
76791333c7
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user