simplified the getActiveGamepad method

This commit is contained in:
e7d 2017-05-14 11:15:53 +02:00
parent 7b60f20398
commit 0a8edf3298

View File

@ -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) {