added a "no gamepad detected" indication

This commit is contained in:
e7d
2016-11-11 01:32:07 +01:00
parent f0e4d20513
commit 8a342d60ec
3 changed files with 9 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function scanGamepads() {
return;
}
var gamepads = getGamepads();
gamepads = getGamepads();
for (var gamepadIndex = 0; gamepadIndex < gamepads.length; gamepadIndex++) {
var gamepad = gamepads[gamepadIndex];
if (gamepad) {