The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Print out all roles

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
4fa50903 2632c223

+14 -4
+14 -4
src/xrt/state_trackers/oxr/oxr_instance.c
··· 129 129 struct xrt_device *h = GET_XDEV_BY_ROLE(sys, head); 130 130 struct xrt_device *l = GET_XDEV_BY_ROLE(sys, left); 131 131 struct xrt_device *r = GET_XDEV_BY_ROLE(sys, right); 132 + struct xrt_device *hl = GET_XDEV_BY_ROLE(sys, hand_tracking.left); 133 + struct xrt_device *hr = GET_XDEV_BY_ROLE(sys, hand_tracking.right); 132 134 133 - oxr_log(log, "Selected devices\n\tHead: '%s' (%i)\n\tLeft: '%s' (%i)\n\tRight: '%s' (%i)", // 134 - h ? h->str : "<none>", sys->role.head, // 135 - l ? l->str : "<none>", sys->role.left, // 136 - r ? r->str : "<none>", sys->role.right); // 135 + #define P(thing) (thing != NULL ? thing->str : "<none>") 136 + 137 + oxr_log(log, 138 + "Selected devices" 139 + "\n\tHead: '%s'" 140 + "\n\tLeft: '%s'" 141 + "\n\tRight: '%s'" 142 + "\n\tHand-Tracking Left: '%s'" 143 + "\n\tHand-Tracking Right: '%s'", 144 + P(h), P(l), P(r), P(hl), P(hr)); 145 + 146 + #undef P 137 147 } 138 148 139 149 static void