From 1f7b41e303c3c3f985227f4fd879ca1837eff306 Mon Sep 17 00:00:00 2001 From: ferferga Date: Fri, 28 Feb 2020 17:30:52 +0100 Subject: [PATCH] Fire input loop --- src/components/input/gamepadtokey.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/input/gamepadtokey.js b/src/components/input/gamepadtokey.js index 9d80a3c27..2feff5574 100644 --- a/src/components/input/gamepadtokey.js +++ b/src/components/input/gamepadtokey.js @@ -394,6 +394,8 @@ require(['apphost'], function (appHost) { window.addEventListener("blur", dettachGamepad); window.addEventListener("focus", attachGamepad); + attachGamepad(); + // The gamepadInputEmulation is a string property that exists in JavaScript UWAs and in WebViews in UWAs. // It won't exist in Win8.1 style apps or browsers. if (window.navigator && typeof window.navigator.gamepadInputEmulation === "string") {