Steam Controller Reg

This commit is contained in:
2025-12-30 19:48:04 +13:00
parent 47970eb0cd
commit ec08213563
7 changed files with 893 additions and 20 deletions
+7
View File
@@ -654,6 +654,13 @@ function initGamepadSupport() {
return;
}
// The global gamepad handler (from gamepad-handler.js injected via preload)
// already polls navigator.getGamepads() continuously. This is what tells Steam
// that we're consuming gamepad input and it should stop mouse emulation.
// Big Picture Mode handles the actual UI navigation and button actions.
console.log('[BigPicture] Global gamepad handler available:', !!window.__nebulaGamepadHandler);
// Note: On Linux (and some controllers like handheld integrated gamepads),
// the `gamepadconnected` event may not fire until the first button press,
// or at all. We rely on continuous polling for robustness.