mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 16:17:20 +02:00
Clear TABs when disabling touch control
This commit is contained in:
parent
5baad2d89a
commit
5866644673
1
src/types/index.d.ts
vendored
1
src/types/index.d.ts
vendored
@ -59,6 +59,7 @@ type XcloudTitleInfo = {
|
|||||||
details: {
|
details: {
|
||||||
productId: string;
|
productId: string;
|
||||||
supportedInputTypes: InputType[];
|
supportedInputTypes: InputType[];
|
||||||
|
supportedTabs: any[];
|
||||||
hasTouchSupport: boolean;
|
hasTouchSupport: boolean;
|
||||||
hasFakeTouchSupport: boolean;
|
hasFakeTouchSupport: boolean;
|
||||||
hasMkbSupport: boolean;
|
hasMkbSupport: boolean;
|
||||||
|
@ -49,11 +49,11 @@ export const BxExposed = {
|
|||||||
gamepadFound && (touchControllerAvailability = 'off');
|
gamepadFound && (touchControllerAvailability = 'off');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (touchControllerAvailability === 'off') {
|
if (touchControllerAvailability === 'off') {
|
||||||
// Disable touch on all games (not native touch)
|
// Disable touch on all games (not native touch)
|
||||||
supportedInputTypes = supportedInputTypes.filter(i => i !== InputType.CUSTOM_TOUCH_OVERLAY && i !== InputType.GENERIC_TOUCH);
|
supportedInputTypes = supportedInputTypes.filter(i => i !== InputType.CUSTOM_TOUCH_OVERLAY && i !== InputType.GENERIC_TOUCH);
|
||||||
|
// Empty TABs
|
||||||
|
titleInfo.details.supportedTabs = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pre-check supported input types
|
// Pre-check supported input types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user