1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fire input loop

This commit is contained in:
ferferga 2020-02-28 17:30:52 +01:00
parent 9c84b8268f
commit 1f7b41e303

View file

@ -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") {