diff --git a/src/modules/patcher.ts b/src/modules/patcher.ts index 7e63df5..d524625 100644 --- a/src/modules/patcher.ts +++ b/src/modules/patcher.ts @@ -325,7 +325,7 @@ if (match) { const newCode = ` const titleInfo = window.BX_EXPOSED.getTitleInfo(); -if (!titleInfo.details.hasTouchSupport) { +if (!titleInfo.details.hasTouchSupport && !titleInfo.details.hasFakeTouchSupport) { return; } `; diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 98cbc9f..79fc6e5 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -57,6 +57,7 @@ type XcloudTitleInfo = { productId: string; supportedInputTypes: InputType[]; hasTouchSupport: boolean; + hasFakeTouchSupport: boolean; hasMkbSupport: boolean; }; diff --git a/src/utils/bx-exposed.ts b/src/utils/bx-exposed.ts index 1b0e02d..7b6e2d1 100644 --- a/src/utils/bx-exposed.ts +++ b/src/utils/bx-exposed.ts @@ -79,6 +79,7 @@ export const BxExposed = { if (!titleInfo.details.hasTouchSupport && touchControllerAvailability === 'all') { // Add generic touch support for non touch-supported games + titleInfo.details.hasFakeTouchSupport = true; supportedInputTypes.push(InputType.GENERIC_TOUCH); }