mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
Move gamepaddisconnected listener
This commit is contained in:
parent
679e873875
commit
baa81126c4
@ -24,7 +24,10 @@ window.addEventListener('gamepadconnected', (e) => {
|
|||||||
isWaiting = false;
|
isWaiting = false;
|
||||||
}
|
}
|
||||||
}, 10);
|
}, 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