diff --git a/js/gamepad.js b/js/gamepad.js index e5a6f9d..c1d4f80 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -1,6 +1,6 @@ class Gamepad { constructor() { - this.haveEvents = 'ongamepadconnected' in window; + this.haveEvents = 'GamepadEvent' in window; // cached DOM references this.$gamepad = $('.gamepad');