Clear TABs when disabling touch control

This commit is contained in:
redphx 2024-05-29 20:09:20 +07:00
parent 5baad2d89a
commit 5866644673
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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