mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Set controller-friendly UI as default on Android TV
This commit is contained in:
parent
210fdfbabe
commit
42b57a2cf8
@ -9,6 +9,7 @@ import { StreamPlayerType, StreamVideoProcessing } from "@enums/stream-player";
|
|||||||
import { UserAgentProfile } from "@/enums/user-agent";
|
import { UserAgentProfile } from "@/enums/user-agent";
|
||||||
import { UiSection } from "@/enums/ui-sections";
|
import { UiSection } from "@/enums/ui-sections";
|
||||||
import { BypassServers } from "@/enums/bypass-servers";
|
import { BypassServers } from "@/enums/bypass-servers";
|
||||||
|
import { BX_FLAGS } from "./bx-flags";
|
||||||
|
|
||||||
export enum PrefKey {
|
export enum PrefKey {
|
||||||
LAST_UPDATE_CHECK = 'version_last_check',
|
LAST_UPDATE_CHECK = 'version_last_check',
|
||||||
@ -558,7 +559,7 @@ export class Preferences {
|
|||||||
|
|
||||||
[PrefKey.UI_CONTROLLER_FRIENDLY]: {
|
[PrefKey.UI_CONTROLLER_FRIENDLY]: {
|
||||||
label: t('controller-friendly-ui'),
|
label: t('controller-friendly-ui'),
|
||||||
default: false,
|
default: !STATES.browser.capabilities.touch || BX_FLAGS.DeviceInfo?.deviceType === "android-tv",
|
||||||
},
|
},
|
||||||
|
|
||||||
[PrefKey.UI_LAYOUT]: {
|
[PrefKey.UI_LAYOUT]: {
|
||||||
@ -611,7 +612,7 @@ export class Preferences {
|
|||||||
[PrefKey.USER_AGENT_PROFILE]: {
|
[PrefKey.USER_AGENT_PROFILE]: {
|
||||||
label: t('user-agent-profile'),
|
label: t('user-agent-profile'),
|
||||||
note: '⚠️ ' + t('unexpected-behavior'),
|
note: '⚠️ ' + t('unexpected-behavior'),
|
||||||
default: 'default',
|
default: BX_FLAGS.DeviceInfo?.deviceType === 'android-tv' ? UserAgentProfile.VR_OCULUS : 'default',
|
||||||
options: {
|
options: {
|
||||||
[UserAgentProfile.DEFAULT]: t('default'),
|
[UserAgentProfile.DEFAULT]: t('default'),
|
||||||
[UserAgentProfile.WINDOWS_EDGE]: 'Edge + Windows',
|
[UserAgentProfile.WINDOWS_EDGE]: 'Edge + Windows',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user