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
+4 -2
View File
@@ -1099,10 +1099,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
auto left = left_hand->locate(world_space, predicted_display_time);
auto right = right_hand->locate(world_space, predicted_display_time);
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
if (left and left->is_input_source() and
xr::hand_tracker::check_flags(left->joints, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
hide_left_controller = true;
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
if (right and right->is_input_source() and
xr::hand_tracker::check_flags(right->joints, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
hide_right_controller = true;
}