fixed have events detection
This commit is contained in:
parent
23b474582a
commit
590b2708b6
@ -1,6 +1,6 @@
|
||||
class Gamepad {
|
||||
constructor() {
|
||||
this.haveEvents = 'ongamepadconnected' in window;
|
||||
this.haveEvents = 'GamepadEvent' in window;
|
||||
|
||||
// cached DOM references
|
||||
this.$gamepad = $('.gamepad');
|
||||
|
Loading…
x
Reference in New Issue
Block a user