Update target look input handling to use full movement data

This commit is contained in:
2026-04-25 16:30:08 +02:00
parent 0601b46f8c
commit b4a533fe01

View File

@@ -537,12 +537,13 @@ export class FirstPersonNavigationController implements NavigationController {
return;
}
const targetLookConsumed =
this.context?.handleRuntimeTargetLookInput?.(
event.movementX > 0 ? 1 : event.movementX < 0 ? -1 : 0
) ?? false;
const targetLookResult =
this.context?.handleRuntimeTargetLookInput?.({
horizontal: event.movementX,
vertical: -event.movementY
}) ?? null;
if (targetLookConsumed) {
if (targetLookResult?.activeTargetLocked === true) {
return;
}