From 2560e7656c4ce9e0224bbd47df38a72d255d4fbd Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Tue, 8 Mar 2016 12:06:55 -0600 Subject: [PATCH] Gamepad API works in Chrome --- src/classes/gamepadinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/gamepadinput.js b/src/classes/gamepadinput.js index 919e1d4..11a16cc 100644 --- a/src/classes/gamepadinput.js +++ b/src/classes/gamepadinput.js @@ -48,7 +48,7 @@ class GamepadInput { self._gamepadState = {}; self.gamepadIds = []; - if (!('ongamepadconnected' in window)) { + if (!("ongamepadconnected" in window)) { let pollGamepads = function () {