Allow navigating Stream settings using controller/keyboard all the time

This commit is contained in:
redphx 2024-07-17 17:54:06 +07:00
parent e73b4dfe78
commit 0f88396db8

View File

@ -311,7 +311,6 @@ export class StreamSettings {
// Lock scroll bar // Lock scroll bar
document.body.classList.add('bx-no-scroll'); document.body.classList.add('bx-no-scroll');
if (getPref(PrefKey.UI_CONTROLLER_FRIENDLY)) {
// Focus the first visible setting // Focus the first visible setting
this.#focusDirection(NavigationDirection.DOWN); this.#focusDirection(NavigationDirection.DOWN);
@ -323,7 +322,6 @@ export class StreamSettings {
// Disable xCloud's navigation polling // Disable xCloud's navigation polling
(window as any).BX_EXPOSED.disableGamepadPolling = true; (window as any).BX_EXPOSED.disableGamepadPolling = true;
}
BxEvent.dispatch(window, BxEvent.XCLOUD_DIALOG_SHOWN); BxEvent.dispatch(window, BxEvent.XCLOUD_DIALOG_SHOWN);
} }