simplified the getActiveGamepad method
This commit is contained in:
parent
7b60f20398
commit
0a8edf3298
@ -97,11 +97,7 @@ class Gamepad {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getActiveGamepad() {
|
getActiveGamepad() {
|
||||||
if (null === this.activeGamepadIndex) {
|
return this.activeGamepad;
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.gamepads[this.activeGamepadIndex];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addGamepad(gamepad) {
|
addGamepad(gamepad) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user