diff --git a/web/js/input/joystick.js b/web/js/input/joystick.js index 4faa30ce..51e22e2a 100644 --- a/web/js/input/joystick.js +++ b/web/js/input/joystick.js @@ -98,8 +98,8 @@ const onGamepadConnected = (e) => { // Ref: https://github.com/giongto35/cloud-game/issues/14 // get mapping first (default KeyMap2) - const os = env.getOs(); - const browser = env.getBrowser(); + const os = env.getOs; + const browser = env.getBrowser; if (os === platform.android) { // default of android is KeyMap1