@wvdsh/api 0.1.107 → 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.
|
@@ -193,6 +193,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
193
193
|
readonly OVERLAY_CHANGED: "OverlayChanged";
|
|
194
194
|
readonly GAMEPLAY_JWT_READY: "GameplayJwtReady";
|
|
195
195
|
readonly END_SESSION: "EndSession";
|
|
196
|
+
readonly SESSION_EXPIRED: "SessionExpired";
|
|
196
197
|
readonly TRIGGER_PAYWALL: "TriggerPaywall";
|
|
197
198
|
readonly LINK_COPIED: "LinkCopied";
|
|
198
199
|
readonly RECORDING_CHANGED: "RecordingChanged";
|
|
@@ -203,6 +204,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
203
204
|
readonly RECORDING_FAILED: "RecordingFailed";
|
|
204
205
|
readonly RECORDING_HOTKEY_CHANGED: "RecordingHotkeyChanged";
|
|
205
206
|
readonly RECORDING_HOTKEY_PRESSED: "RecordingHotkeyPressed";
|
|
207
|
+
readonly VIRTUAL_GAMEPAD: "wavedash:gamepad";
|
|
206
208
|
};
|
|
207
209
|
export declare const GAME_ISOLATION_ERROR_PATTERN: RegExp;
|
|
208
210
|
export declare const SERVICE_WORKER_MESSAGE_TYPE: {
|
|
@@ -311,6 +313,7 @@ export type IFrameEventPayloadMap = {
|
|
|
311
313
|
isMuted: boolean;
|
|
312
314
|
};
|
|
313
315
|
[IFRAME_MESSAGE_TYPE.END_SESSION]: void;
|
|
316
|
+
[IFRAME_MESSAGE_TYPE.SESSION_EXPIRED]: void;
|
|
314
317
|
[IFRAME_MESSAGE_TYPE.GAMEPLAY_JWT_READY]: {
|
|
315
318
|
gameplayJwt: string;
|
|
316
319
|
};
|
|
@@ -356,6 +359,11 @@ export type IFrameEventPayloadMap = {
|
|
|
356
359
|
hotkey: string | null;
|
|
357
360
|
};
|
|
358
361
|
[IFRAME_MESSAGE_TYPE.RECORDING_HOTKEY_PRESSED]: void;
|
|
362
|
+
[IFRAME_MESSAGE_TYPE.VIRTUAL_GAMEPAD]: {
|
|
363
|
+
connected: boolean;
|
|
364
|
+
buttons: number[];
|
|
365
|
+
axes: number[];
|
|
366
|
+
};
|
|
359
367
|
};
|
|
360
368
|
export declare const LAUNCH_PARAM_PREFIX = "wvdsh_";
|
|
361
369
|
export interface GameLaunchParams {
|
|
@@ -167,6 +167,7 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
167
167
|
OVERLAY_CHANGED: 'OverlayChanged',
|
|
168
168
|
GAMEPLAY_JWT_READY: 'GameplayJwtReady',
|
|
169
169
|
END_SESSION: 'EndSession',
|
|
170
|
+
SESSION_EXPIRED: 'SessionExpired',
|
|
170
171
|
TRIGGER_PAYWALL: 'TriggerPaywall',
|
|
171
172
|
LINK_COPIED: 'LinkCopied',
|
|
172
173
|
RECORDING_CHANGED: 'RecordingChanged',
|
|
@@ -176,7 +177,8 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
176
177
|
RECORDING_FINISHED: 'RecordingFinished',
|
|
177
178
|
RECORDING_FAILED: 'RecordingFailed',
|
|
178
179
|
RECORDING_HOTKEY_CHANGED: 'RecordingHotkeyChanged',
|
|
179
|
-
RECORDING_HOTKEY_PRESSED: 'RecordingHotkeyPressed'
|
|
180
|
+
RECORDING_HOTKEY_PRESSED: 'RecordingHotkeyPressed',
|
|
181
|
+
VIRTUAL_GAMEPAD: 'wavedash:gamepad'
|
|
180
182
|
};
|
|
181
183
|
// Errors that mean a threaded build ran without cross-origin isolation, only meaningful when crossOriginIsolated is false.
|
|
182
184
|
// Godot: "SharedArrayBuffer is not defined" / "Cross Origin Isolation"; Unity: "does not support multithreading";
|