Only ask actual hand tracking in lobby

This commit is contained in:
Patrick Nicolas
2026-10-27 22:08:34 +01:00
parent 8c5afd9a27
commit 500a60b685
8 changed files with 42 additions and 49 deletions
+3 -3
View File
@@ -580,10 +580,10 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
current_aim_interaction = 1;
if (ctrl.hand)
{
if (auto hand = ctrl.hand->locate(world, display_time); hand.joints and hand.is_input_source())
if (auto hand = ctrl.hand->locate(world, display_time).joints)
{
XrHandJointLocationEXT & index_tip = (*hand.joints)[XR_HAND_JOINT_INDEX_TIP_EXT].first;
XrHandJointLocationEXT & palm = (*hand.joints)[XR_HAND_JOINT_PALM_EXT].first;
XrHandJointLocationEXT & index_tip = (*hand)[XR_HAND_JOINT_INDEX_TIP_EXT].first;
XrHandJointLocationEXT & palm = (*hand)[XR_HAND_JOINT_PALM_EXT].first;
if (index_tip.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
{