mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix not showing default touch control
This commit is contained in:
parent
6a81ee2806
commit
6e17c2e24b
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@ -3289,7 +3289,7 @@ class TouchController {
|
|||||||
if (!layoutId)
|
if (!layoutId)
|
||||||
layoutId = TouchController.#customLayouts[xboxTitleId]?.default_layout || null;
|
layoutId = TouchController.#customLayouts[xboxTitleId]?.default_layout || null;
|
||||||
if (!layoutId) {
|
if (!layoutId) {
|
||||||
BxLogger.error(LOG_TAG2, "Invalid layoutId");
|
BxLogger.error(LOG_TAG2, "Invalid layoutId, show default controller"), TouchController.#enabled && TouchController.#showDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const layoutChanged = TouchController.#currentLayoutId !== layoutId;
|
const layoutChanged = TouchController.#currentLayoutId !== layoutId;
|
||||||
|
@ -202,7 +202,8 @@ export class TouchController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!layoutId) {
|
if (!layoutId) {
|
||||||
BxLogger.error(LOG_TAG, 'Invalid layoutId');
|
BxLogger.error(LOG_TAG, 'Invalid layoutId, show default controller');
|
||||||
|
TouchController.#enabled && TouchController.#showDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user