mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
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
Block a user