mirror of
https://github.com/linuxserver/emulatorjs.git
synced 2026-02-23 00:01:26 +08:00
Handle empty list of gamepads
This commit is contained in:
parent
6d6cb79e51
commit
d4e8ddac67
@ -478,7 +478,7 @@ async function rendermenu(datas) {
|
||||
let gpUpdate;
|
||||
function gameLoop() {
|
||||
let gamePads = navigator.getGamepads();
|
||||
if (!gamePads) return;
|
||||
if (!gamePads?.[0]) return;
|
||||
let gp = gamePads[0];
|
||||
if (window.location.hash != "#game") {
|
||||
gameStarted = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user