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