Update runtime target state management to use a boolean switch flag

This commit is contained in:
2026-04-25 16:25:33 +02:00
parent 5881d9d448
commit 4be1e05251

View File

@@ -5503,7 +5503,7 @@ export class RuntimeHost {
this.runtimeTargetCandidates = [];
this.proposedRuntimeTarget = null;
this.activeRuntimeTargetReference = null;
this.runtimeTargetLookInputHeldDirection = null;
this.runtimeTargetSwitchInputHeld = false;
this.previousTargetCycleInputActive = false;
this.targetingLuxInitialized = false;
this.targetingVisualTime = 0;
@@ -5528,7 +5528,7 @@ export class RuntimeHost {
private setActiveRuntimeTargetReference(reference: RuntimeTargetReference | null) {
this.activeRuntimeTargetReference = reference;
this.runtimeTargetLookInputHeldDirection = null;
this.runtimeTargetSwitchInputHeld = false;
}
private refreshRuntimeTargetingState() {