Add WebGL2 renderer

This commit is contained in:
redphx
2024-06-21 17:45:43 +07:00
parent 6150c2ea70
commit f169c17e18
40 changed files with 955 additions and 220 deletions

View File

@@ -37,7 +37,7 @@ type BxStates = {
productId: string;
titleInfo: XcloudTitleInfo;
$video: HTMLVideoElement | null;
streamPlayer: StreamPlayer | null;
peerConnection: RTCPeerConnection;
audioContext: AudioContext | null;
@@ -62,6 +62,7 @@ type XcloudTitleInfo = {
productId: string;
supportedInputTypes: InputType[];
supportedTabs: any[];
hasNativeTouchSupport: boolean;
hasTouchSupport: boolean;
hasFakeTouchSupport: boolean;
hasMkbSupport: boolean;
@@ -78,6 +79,9 @@ declare module '*.js';
declare module '*.svg';
declare module '*.styl';
declare module '*.fs';
declare module '*.vert';
type MkbMouseMove = {
movementX: number;
movementY: number;

2
src/types/mkb.d.ts vendored
View File

@@ -1,4 +1,4 @@
import { MkbPresetKey } from "@modules/mkb/definitions";
import { MkbPresetKey } from "@enums/mkb";
type GamepadKeyNameType = {[index: string | number]: string[]};