@wvdsh/api 0.1.108 → 0.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -204,6 +204,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
204
204
|
readonly RECORDING_FAILED: "RecordingFailed";
|
|
205
205
|
readonly RECORDING_HOTKEY_CHANGED: "RecordingHotkeyChanged";
|
|
206
206
|
readonly RECORDING_HOTKEY_PRESSED: "RecordingHotkeyPressed";
|
|
207
|
+
readonly VIRTUAL_GAMEPAD: "wavedash:gamepad";
|
|
207
208
|
};
|
|
208
209
|
export declare const GAME_ISOLATION_ERROR_PATTERN: RegExp;
|
|
209
210
|
export declare const SERVICE_WORKER_MESSAGE_TYPE: {
|
|
@@ -358,6 +359,11 @@ export type IFrameEventPayloadMap = {
|
|
|
358
359
|
hotkey: string | null;
|
|
359
360
|
};
|
|
360
361
|
[IFRAME_MESSAGE_TYPE.RECORDING_HOTKEY_PRESSED]: void;
|
|
362
|
+
[IFRAME_MESSAGE_TYPE.VIRTUAL_GAMEPAD]: {
|
|
363
|
+
connected: boolean;
|
|
364
|
+
buttons: number[];
|
|
365
|
+
axes: number[];
|
|
366
|
+
};
|
|
361
367
|
};
|
|
362
368
|
export declare const LAUNCH_PARAM_PREFIX = "wvdsh_";
|
|
363
369
|
export interface GameLaunchParams {
|
|
@@ -177,7 +177,8 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
177
177
|
RECORDING_FINISHED: 'RecordingFinished',
|
|
178
178
|
RECORDING_FAILED: 'RecordingFailed',
|
|
179
179
|
RECORDING_HOTKEY_CHANGED: 'RecordingHotkeyChanged',
|
|
180
|
-
RECORDING_HOTKEY_PRESSED: 'RecordingHotkeyPressed'
|
|
180
|
+
RECORDING_HOTKEY_PRESSED: 'RecordingHotkeyPressed',
|
|
181
|
+
VIRTUAL_GAMEPAD: 'wavedash:gamepad'
|
|
181
182
|
};
|
|
182
183
|
// Errors that mean a threaded build ran without cross-origin isolation, only meaningful when crossOriginIsolated is false.
|
|
183
184
|
// Godot: "SharedArrayBuffer is not defined" / "Cross Origin Isolation"; Unity: "does not support multithreading";
|