Reset input and navigation state across runtime host and third-person controller upon pointer lock loss
This commit is contained in:
@@ -977,6 +977,10 @@ export class RuntimeHost {
|
||||
|
||||
if (previousPointerLocked && !nextPointerLocked) {
|
||||
this.lastPointerLockReleaseAt = performance.now();
|
||||
this.pressedKeys.clear();
|
||||
this.previousInteractInputActive = false;
|
||||
this.previousClearTargetInputActive = false;
|
||||
this.previousPauseInputActive = false;
|
||||
}
|
||||
|
||||
this.currentPlayerControllerTelemetry = telemetry;
|
||||
|
||||
Reference in New Issue
Block a user