client: xrHandTrackingDataSourceExt to filter out controller-based HT

This commit is contained in:
galister
2026-09-27 17:14:33 +09:00
parent 596e661d7e
commit ee0d667105
11 changed files with 127 additions and 68 deletions
+3 -3
View File
@@ -581,10 +581,10 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
current_aim_interaction = 1;
if (ctrl.hand)
{
if (auto joints = ctrl.hand->locate(world, display_time))
if (auto hand = ctrl.hand->locate(world, display_time); hand and hand->is_input_source())
{
XrHandJointLocationEXT & index_tip = (*joints)[XR_HAND_JOINT_INDEX_TIP_EXT].first;
XrHandJointLocationEXT & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
XrHandJointLocationEXT & index_tip = hand->joints[XR_HAND_JOINT_INDEX_TIP_EXT].first;
XrHandJointLocationEXT & palm = hand->joints[XR_HAND_JOINT_PALM_EXT].first;
if (index_tip.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
{