The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/oxr: Use correct device to check for hand tracking support

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
074121e3 97874a52

+5 -4
+5 -4
src/xrt/state_trackers/oxr/oxr_system.c
··· 174 174 oxr_system_get_hand_tracking_support(struct oxr_logger *log, struct oxr_instance *inst) 175 175 { 176 176 struct oxr_system *sys = &inst->system; 177 - struct xrt_device *left = GET_XDEV_BY_ROLE(sys, left); 178 - struct xrt_device *right = GET_XDEV_BY_ROLE(sys, right); 177 + struct xrt_device *ht_left = GET_XDEV_BY_ROLE(sys, hand_tracking.left); 178 + struct xrt_device *ht_right = GET_XDEV_BY_ROLE(sys, hand_tracking.right); 179 + 180 + bool left_supported = ht_left && ht_left->hand_tracking_supported; 181 + bool right_supported = ht_right && ht_right->hand_tracking_supported; 179 182 180 - bool left_supported = left && left->hand_tracking_supported; 181 - bool right_supported = right && right->hand_tracking_supported; 182 183 return left_supported || right_supported; 183 184 } 184 185