Bump scene document version and clear pressed keys in runtime host

This commit is contained in:
2026-04-14 22:39:04 +02:00
parent 4b8e75483d
commit 9314beef68
2 changed files with 4 additions and 1 deletions

View File

@@ -28,7 +28,8 @@ import {
type ProjectDialogueLibrary
} from "../dialogues/project-dialogues";
export const SCENE_DOCUMENT_VERSION = 51 as const;
export const SCENE_DOCUMENT_VERSION = 52 as const;
export const PLAYER_START_PAUSE_BINDINGS_SCENE_DOCUMENT_VERSION = 52 as const;
export const NPC_DIALOGUE_REFERENCE_SCENE_DOCUMENT_VERSION = 51 as const;
export const PROJECT_DIALOGUE_LIBRARY_SCENE_DOCUMENT_VERSION = 50 as const;
export const SCHEDULER_ACTOR_ROUTINE_EFFECTS_SCENE_DOCUMENT_VERSION = 49 as const;

View File

@@ -526,6 +526,7 @@ export class RuntimeHost {
this.manualPauseActive = false;
this.controlPauseActive = false;
this.previousPauseInputActive = false;
this.pressedKeys.clear();
this.publishRuntimePauseState(true);
this.currentPlayerControllerTelemetry = null;
this.currentPlayerAudioHooks = null;
@@ -727,6 +728,7 @@ export class RuntimeHost {
this.manualPauseActive = false;
this.controlPauseActive = false;
this.previousPauseInputActive = false;
this.pressedKeys.clear();
this.publishRuntimePauseState(true);
if (this.renderer !== null) {
this.renderer.autoClear = true;