mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Use a better method to enable touch control for all games
This commit is contained in:
15
src/types/index.d.ts
vendored
15
src/types/index.d.ts
vendored
@@ -31,6 +31,7 @@ type BxStates = {
|
||||
titleId: string;
|
||||
xboxTitleId: string;
|
||||
productId: string;
|
||||
titleInfo: XcloudTitleInfo;
|
||||
|
||||
$video: HTMLVideoElement | null;
|
||||
$screenshotCanvas: HTMLCanvasElement | null;
|
||||
@@ -50,3 +51,17 @@ type BxStates = {
|
||||
}
|
||||
|
||||
type DualEnum = {[index: string]: number} & {[index: number]: string};
|
||||
|
||||
type XcloudTitleInfo = {
|
||||
details: {
|
||||
productId: string;
|
||||
supportedInputTypes: InputType[];
|
||||
hasTouchSupport: boolean;
|
||||
};
|
||||
|
||||
product: {
|
||||
heroImageUrl: string;
|
||||
titledHeroImageUrl: string;
|
||||
tileImageUrl: string;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user