Initialize and reset previous interact input state in RuntimeHost.

This commit is contained in:
2026-04-27 15:41:17 +02:00
parent 138e1ba57a
commit b617056593

View File

@@ -1095,6 +1095,7 @@ export class RuntimeHost {
this.manualPauseActive = false;
this.controlPauseActive = false;
this.dialoguePauseActive = false;
this.previousInteractInputActive = false;
this.previousPauseInputActive = false;
this.cameraRigLookDragging = false;
this.cameraRigLookYawRadians = 0;
@@ -1336,6 +1337,7 @@ export class RuntimeHost {
this.manualPauseActive = false;
this.controlPauseActive = false;
this.dialoguePauseActive = false;
this.previousInteractInputActive = false;
this.previousPauseInputActive = false;
this.cameraRigLookDragging = false;
this.cameraRigLookYawRadians = 0;
@@ -6740,6 +6742,7 @@ export class RuntimeHost {
private handleRuntimeBlur = () => {
this.pressedKeys.clear();
this.previousInteractInputActive = false;
this.previousPauseInputActive = false;
this.previousTargetCycleInputActive = false;
this.cameraRigLookDragging = false;