mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Fix not able to control Remote Play dialog using controller (#509)
This commit is contained in:
parent
dabab9acb1
commit
037927b9be
9
dist/better-xcloud.user.js
vendored
9
dist/better-xcloud.user.js
vendored
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Better xCloud
|
||||
// @namespace https://github.com/redphx
|
||||
// @version 5.7.4
|
||||
// @version 5.7.5-beta
|
||||
// @description Improve Xbox Cloud Gaming (xCloud) experience
|
||||
// @author redphx
|
||||
// @license MIT
|
||||
@ -139,7 +139,7 @@ function deepClone(obj) {
|
||||
return {};
|
||||
return JSON.parse(JSON.stringify(obj));
|
||||
}
|
||||
var SCRIPT_VERSION = "5.7.4", AppInterface = window.AppInterface;
|
||||
var SCRIPT_VERSION = "5.7.5-beta", AppInterface = window.AppInterface;
|
||||
UserAgent.init();
|
||||
var userAgent = window.navigator.userAgent.toLowerCase(), isTv = userAgent.includes("smart-tv") || userAgent.includes("smarttv") || /\baft.*\b/.test(userAgent), isVr = window.navigator.userAgent.includes("VR") && window.navigator.userAgent.includes("OculusBrowser"), browserHasTouchSupport = "ontouchstart" in window || navigator.maxTouchPoints > 0, userAgentHasTouchSupport = !isTv && !isVr && browserHasTouchSupport, STATES = {
|
||||
supportedRegion: !0,
|
||||
@ -2507,7 +2507,7 @@ class NavigationDialog {
|
||||
return !1;
|
||||
}
|
||||
handleGamepad(button) {
|
||||
return !0;
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -6236,7 +6236,8 @@ class RemotePlayNavigationDialog extends NavigationDialog {
|
||||
label: t("help")
|
||||
}), createButton({
|
||||
style: 4 | 32,
|
||||
label: t("close")
|
||||
label: t("close"),
|
||||
onClick: (e) => this.hide()
|
||||
}))), this.$container = $fragment;
|
||||
}
|
||||
getDialog() {
|
||||
|
@ -80,7 +80,7 @@ export abstract class NavigationDialog {
|
||||
}
|
||||
|
||||
handleGamepad(button: GamepadKey): boolean {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,6 +125,7 @@ export class RemotePlayNavigationDialog extends NavigationDialog {
|
||||
createButton({
|
||||
style: ButtonStyle.GHOST | ButtonStyle.FOCUSABLE,
|
||||
label: t('close'),
|
||||
onClick: e => this.hide(),
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user