diff --git a/resources/emscripten/emscripten-shell.html b/resources/emscripten/emscripten-shell.html index a4fbf2dc65..c10399edc9 100644 --- a/resources/emscripten/emscripten-shell.html +++ b/resources/emscripten/emscripten-shell.html @@ -270,7 +270,7 @@ /** @type {{[key: number]: Gamepad}} */ let gamepads = {}; -const haveEvents = 'ongamepadonnected' in window; +const haveEvents = 'ongamepadconnected' in window; function addGamepad(gamepad) { if (gamepad == undefined) {