Move gamepaddisconnected listener
This commit is contained in:
parent
679e873875
commit
baa81126c4
|
@ -24,7 +24,10 @@ window.addEventListener('gamepadconnected', (e) => {
|
|||
isWaiting = false;
|
||||
}
|
||||
}, 10);
|
||||
window.addEventListener('gamepaddisconnected', (e) => clearInterval(gamepads[e.gamepad.index]));
|
||||
});
|
||||
|
||||
window.addEventListener('gamepaddisconnected', (e) => {
|
||||
clearInterval(gamepads[e.gamepad.index]);
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue