fixed have events detection

This commit is contained in:
e7d 2017-05-14 14:23:15 +02:00
parent 23b474582a
commit 590b2708b6

View File

@ -1,6 +1,6 @@
class Gamepad {
constructor() {
this.haveEvents = 'ongamepadconnected' in window;
this.haveEvents = 'GamepadEvent' in window;
// cached DOM references
this.$gamepad = $('.gamepad');