Update target look input handling to use full movement data
This commit is contained in:
@@ -537,12 +537,13 @@ export class FirstPersonNavigationController implements NavigationController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetLookConsumed =
|
const targetLookResult =
|
||||||
this.context?.handleRuntimeTargetLookInput?.(
|
this.context?.handleRuntimeTargetLookInput?.({
|
||||||
event.movementX > 0 ? 1 : event.movementX < 0 ? -1 : 0
|
horizontal: event.movementX,
|
||||||
) ?? false;
|
vertical: -event.movementY
|
||||||
|
}) ?? null;
|
||||||
|
|
||||||
if (targetLookConsumed) {
|
if (targetLookResult?.activeTargetLocked === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user