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

@@ -49,11 +49,11 @@ export const BxExposed = {
gamepadFound && (touchControllerAvailability = 'off');
}
if (touchControllerAvailability === 'off') {
// Disable touch on all games (not native touch)
supportedInputTypes = supportedInputTypes.filter(i => i !== InputType.CUSTOM_TOUCH_OVERLAY && i !== InputType.GENERIC_TOUCH);
// Empty TABs
titleInfo.details.supportedTabs = [];
}
// Pre-check supported input types