Fix input X sign in RuntimeHost and add test for temporary look-on input in navigation controller

This commit is contained in:
2026-04-25 16:32:35 +02:00
parent e55db834ab
commit 5ce0f1f9cf
2 changed files with 47 additions and 1 deletions

View File

@@ -5733,7 +5733,7 @@ export class RuntimeHost {
let bestCandidate: RuntimeTargetCandidate | null = null;
let bestAlignment = TARGETING_SCREEN_SWITCH_MIN_ALIGNMENT;
let bestScreenDistance = 0;
const inputX = input.horizontal / inputLength;
const inputX = -input.horizontal / inputLength;
const inputY = input.vertical / inputLength;
for (const candidate of this.runtimeTargetCandidates) {