1
0

removed hand specific tracking
All checks were successful
Publish Pages / publish (push) Successful in 22s
Test / test (push) Successful in 11s

This commit is contained in:
Aiden
2026-06-11 16:51:42 +10:00
parent a4bbd71b31
commit fbfdc1c575
13 changed files with 43 additions and 771 deletions

View File

@@ -1,4 +1,4 @@
export type PointerInputMode = 'controller' | 'hand';
export type PointerInputMode = 'controller';
export type PointerInputModeCarrier = {
controller?: {
@@ -31,22 +31,9 @@ export function getPointerInputMode(eventInputSource: any): PointerInputMode | n
return null;
}
if (eventInputSource.hand) {
return 'hand';
}
if (Array.isArray(eventInputSource.profiles) &&
eventInputSource.profiles.some((profile: string) => profile.toLowerCase().includes('hand'))) {
return 'hand';
}
if (eventInputSource.gamepad || eventInputSource.targetRayMode === 'tracked-pointer') {
return 'controller';
}
return null;
}
export function shouldUseHandPointer(inputSource: PointerInputModeCarrier | undefined): boolean {
return inputSource?.pointerInputMode === 'hand';
}