The open source OpenXR runtime
0
fork

Configure Feed

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

st/prober: Print the deviecs we got when looping throught the builders

+27
+27
src/xrt/state_trackers/prober/p_prober.c
··· 8 8 */ 9 9 10 10 #include "xrt/xrt_config_drivers.h" 11 + #include "xrt/xrt_system.h" 11 12 #include "xrt/xrt_settings.h" 12 13 13 14 #include "util/u_var.h" ··· 831 832 return NULL; 832 833 } 833 834 835 + static void 836 + print_system_devices(u_pp_delegate_t dg, struct xrt_system_devices *xsysd) 837 + { 838 + u_pp(dg, "\n\tGot devices:"); 839 + 840 + for (uint32_t i = 0; i < xsysd->xdev_count; i++) { 841 + u_pp(dg, "\n\t\t%u: %s", i, xsysd->xdevs[i]->str); 842 + } 843 + 844 + u_pp(dg, "\n\tIn roles:"); 845 + 846 + #define P(IDENT) u_pp(dg, "\n\t\t%s: %s", #IDENT, xsysd->roles.IDENT ? xsysd->roles.IDENT->str : "<none>") 847 + P(head); 848 + P(left); 849 + P(right); 850 + P(gamepad); 851 + P(hand_tracking.left); 852 + P(hand_tracking.right); 853 + #undef P 854 + } 855 + 834 856 835 857 /* 836 858 * ··· 1041 1063 if (select != NULL) { 1042 1064 u_pp(dg, "\n\tUsing builder %s: %s", select->identifier, select->name); 1043 1065 xret = xrt_builder_open_system(select, p->json.root, xp, out_xsysd); 1066 + 1067 + if (xret == XRT_SUCCESS) { 1068 + print_system_devices(dg, *out_xsysd); 1069 + } 1070 + 1044 1071 u_pp(dg, "\n\tResult: "); 1045 1072 u_pp_xrt_result(dg, xret); 1046 1073 }