mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-28 10:21:44 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d73f91ed5f | |||
b918fadaab | |||
b79775839b | |||
d3e0ba9d9f | |||
e6e8297632 | |||
e94fb28266 |
@ -301,5 +301,5 @@ But if you still really want to donate, I have a [Ko-fi page](https://ko-fi.com/
|
||||
- Icons by [Phosphor Icons](https://phosphoricons.com)
|
||||
|
||||
## Disclaimers
|
||||
- Use as it your own risk.
|
||||
- Use it at your own risk.
|
||||
- This project is not affiliated with Xbox in any way. All Xbox logos/icons/trademarks are copyright of their respective owners.
|
||||
|
@ -1,5 +1,5 @@
|
||||
// ==UserScript==
|
||||
// @name Better xCloud
|
||||
// @namespace https://github.com/redphx
|
||||
// @version 1.18.1
|
||||
// @version 1.18.2
|
||||
// ==/UserScript==
|
||||
|
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Better xCloud
|
||||
// @namespace https://github.com/redphx
|
||||
// @version 1.18.1
|
||||
// @version 1.18.2
|
||||
// @description Improve Xbox Cloud Gaming (xCloud) experience
|
||||
// @author redphx
|
||||
// @license MIT
|
||||
@ -13,7 +13,7 @@
|
||||
// ==/UserScript==
|
||||
'use strict';
|
||||
|
||||
const SCRIPT_VERSION = '1.18.1';
|
||||
const SCRIPT_VERSION = '1.18.2';
|
||||
const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
||||
|
||||
console.log(`[Better xCloud] readyState: ${document.readyState}`);
|
||||
@ -1530,11 +1530,11 @@ class TitlesInfo {
|
||||
|
||||
static saveFromTitleInfo(titleInfo) {
|
||||
const details = titleInfo.details;
|
||||
TitlesInfo.#INFO[details.productId] = {
|
||||
TitlesInfo.update(details.productId, {
|
||||
titleId: titleInfo.titleId,
|
||||
// Has more than one input type -> must have touch support
|
||||
hasTouchSupport: (details.supportedInputTypes.length > 1),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
static saveFromCatalogInfo(catalogInfo) {
|
||||
@ -1763,6 +1763,8 @@ class TouchController {
|
||||
}
|
||||
|
||||
static #$bar;
|
||||
static #$style;
|
||||
|
||||
static #enable = false;
|
||||
static #showing = false;
|
||||
static #dataChannel;
|
||||
@ -1807,6 +1809,7 @@ class TouchController {
|
||||
TouchController.#dataChannel = null;
|
||||
|
||||
TouchController.#$bar && TouchController.#$bar.removeAttribute('data-showing');
|
||||
TouchController.#$style && (TouchController.#$style.textContent = '');
|
||||
}
|
||||
|
||||
static #dispatchMessage(msg) {
|
||||
@ -1839,6 +1842,7 @@ class TouchController {
|
||||
});
|
||||
|
||||
TouchController.#$bar = $bar;
|
||||
TouchController.#$style = $style;
|
||||
|
||||
const PREF_STYLE_STANDARD = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_STANDARD);
|
||||
const PREF_STYLE_CUSTOM = PREFS.get(Preferences.STREAM_TOUCH_CONTROLLER_STYLE_CUSTOM);
|
||||
@ -2640,7 +2644,7 @@ class Preferences {
|
||||
[Preferences.STREAM_TARGET_RESOLUTION]: {
|
||||
'default': 'auto',
|
||||
'options': {
|
||||
'auto': __('auto'),
|
||||
'auto': __('default'),
|
||||
'1080p': '1080p',
|
||||
'720p': '720p',
|
||||
},
|
||||
|
Reference in New Issue
Block a user