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