Skip to content

Commit

Permalink
[PICO] Disable the controller when no position info is available
Browse files Browse the repository at this point in the history
PICO continuously tracks the controllers even when they are not
in use, so we always check for additional hand tracking
information.

However, it might happen that the PICO controller has the
SPACE_LOCATION_ORIENTATION_VALID flag unset and at the same
time we are not able to get hand tracking information.

In that scenario, we should hide the controller.
  • Loading branch information
felipeerias authored and svillar committed Feb 6, 2025
1 parent 57d2dc8 commit 39f32a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/openxr/cpp/OpenXRInputSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,9 @@ void OpenXRInputSource::Update(const XrFrameState& frameState, XrSpace localSpac
}
handFacesHead = OpenXRGestureManager::handFacesHead(jointTransforms[HAND_JOINT_FOR_AIM], head);
delegate.SetHandJointLocations(mIndex, std::move(jointTransforms), std::move(jointRadii));
} else if (isControllerUnavailable) {
delegate.SetEnabled(mIndex, false);
return;
}
}

Expand Down

0 comments on commit 39f32a6

Please sign in to comment.