added active gamepad related checks
This commit is contained in:
parent
ea65dac594
commit
cc1fa68387
@ -158,6 +158,8 @@ class Gamepad {
|
|||||||
|
|
||||||
// ensure that a gamepad is currently active
|
// ensure that a gamepad is currently active
|
||||||
if (!this.activeGamepad) {
|
if (!this.activeGamepad) {
|
||||||
|
this.displayGamepadHelp();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,6 +177,10 @@ class Gamepad {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.activeGamepadType) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let button;
|
let button;
|
||||||
let axis;
|
let axis;
|
||||||
this.hideGamepadHelp();
|
this.hideGamepadHelp();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user