mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Removed unnecessary check
This commit is contained in:
parent
2b4cf6f5b7
commit
417e7dae88
1 changed files with 1 additions and 6 deletions
|
@ -156,12 +156,7 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isGamepadConnected()) {
|
// No need to check for gamepads manually at load time, the eventhandler will be fired for that
|
||||||
console.log("Gamepad connected! Attaching gamepadtokey.js script");
|
|
||||||
} else {
|
|
||||||
console.log("No gamepad connected to this device");
|
|
||||||
}
|
|
||||||
// No need to check for gamepads manually at load time, the eventhandler will be fired at load time as well
|
|
||||||
window.addEventListener("gamepaddisconnected", dettachGamepad);
|
window.addEventListener("gamepaddisconnected", dettachGamepad);
|
||||||
window.addEventListener("gamepadconnected", attachGamepad);
|
window.addEventListener("gamepadconnected", attachGamepad);
|
||||||
require(["components/input/mouseManager"]);
|
require(["components/input/mouseManager"]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue