The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: fix wrong sort order for hand-tracking data-sources

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2521>

+2 -2
+2 -2
src/xrt/state_trackers/oxr/oxr_objects.h
··· 2660 2660 const struct oxr_hand_tracking_data_source *lhs = (const struct oxr_hand_tracking_data_source *)p1; 2661 2661 const struct oxr_hand_tracking_data_source *rhs = (const struct oxr_hand_tracking_data_source *)p2; 2662 2662 assert(lhs && rhs); 2663 - if (lhs->input_name < rhs->input_name) 2663 + if (rhs->input_name < lhs->input_name) 2664 2664 return -1; 2665 - if (lhs->input_name > rhs->input_name) 2665 + if (rhs->input_name > lhs->input_name) 2666 2666 return 1; 2667 2667 return 0; 2668 2668 }