The open source OpenXR runtime
0
fork

Configure Feed

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

d/qwerty: Remove old prober code

-89
-8
src/xrt/drivers/qwerty/qwerty_interface.h
··· 34 34 */ 35 35 36 36 /*! 37 - * Create an auto prober for qwerty devices. 38 - * 39 - * @ingroup drv_qwerty 40 - */ 41 - struct xrt_auto_prober * 42 - qwerty_create_auto_prober(void); 43 - 44 - /*! 45 37 * Process an SDL_Event (like a key press) and dispatches a suitable action 46 38 * to the appropriate qwerty_device. 47 39 *
-73
src/xrt/drivers/qwerty/qwerty_prober.c
··· 9 9 10 10 #include "xrt/xrt_prober.h" 11 11 12 - #include "util/u_misc.h" 13 - #include "util/u_debug.h" 14 12 #include "util/u_logging.h" 15 13 16 14 #include "qwerty_device.h" 17 15 #include "qwerty_interface.h" 18 16 19 17 20 - // Using INFO as default to inform events real devices could report physically 21 - DEBUG_GET_ONCE_LOG_OPTION(qwerty_log, "QWERTY_LOG", U_LOGGING_INFO) 22 - 23 - // Driver disabled by default for being experimental 24 - DEBUG_GET_ONCE_BOOL_OPTION(qwerty_enable, "QWERTY_ENABLE", false) 25 - 26 - struct qwerty_prober 27 - { 28 - struct xrt_auto_prober base; 29 - }; 30 - 31 - static struct qwerty_prober * 32 - qwerty_prober(struct xrt_auto_prober *p) 33 - { 34 - return (struct qwerty_prober *)p; 35 - } 36 - 37 - static void 38 - qwerty_prober_destroy(struct xrt_auto_prober *p) 39 - { 40 - struct qwerty_prober *qp = qwerty_prober(p); 41 - free(qp); 42 - } 43 - 44 - static int 45 - qwerty_prober_autoprobe(struct xrt_auto_prober *xap, 46 - cJSON *attached_data, 47 - bool no_hmds, 48 - struct xrt_prober *xp, 49 - struct xrt_device **out_xdevs) 50 - { 51 - bool qwerty_enabled = debug_get_bool_option_qwerty_enable(); 52 - if (!qwerty_enabled) { 53 - return 0; 54 - } 55 - 56 - bool hmd_wanted = !no_hmds; // Hopefully easier to reason about 57 - 58 - struct qwerty_hmd *qhmd = hmd_wanted ? qwerty_hmd_create() : NULL; 59 - struct qwerty_controller *qleft = qwerty_controller_create(true, qhmd); 60 - struct qwerty_controller *qright = qwerty_controller_create(false, qhmd); 61 - 62 - enum u_logging_level log_level = debug_get_log_option_qwerty_log(); 63 - qwerty_system_create(qhmd, qleft, qright, log_level); 64 - 65 - struct xrt_device *xd_hmd = &qhmd->base.base; 66 - struct xrt_device *xd_left = &qleft->base.base; 67 - struct xrt_device *xd_right = &qright->base.base; 68 - 69 - if (hmd_wanted) { 70 - out_xdevs[0] = xd_hmd; 71 - } 72 - out_xdevs[1 - !hmd_wanted] = xd_left; 73 - out_xdevs[2 - !hmd_wanted] = xd_right; 74 - 75 - int num_qwerty_devices = hmd_wanted + 2; 76 - return num_qwerty_devices; 77 - } 78 - 79 - 80 18 /* 81 19 * 82 20 * 'Exported' functions. 83 21 * 84 22 */ 85 - 86 - struct xrt_auto_prober * 87 - qwerty_create_auto_prober(void) 88 - { 89 - struct qwerty_prober *qp = U_TYPED_CALLOC(struct qwerty_prober); 90 - qp->base.name = "Qwerty"; 91 - qp->base.destroy = qwerty_prober_destroy; 92 - qp->base.lelo_dallas_autoprobe = qwerty_prober_autoprobe; 93 - 94 - return &qp->base; 95 - } 96 23 97 24 xrt_result_t 98 25 qwerty_create_devices(enum u_logging_level log_level,
-8
src/xrt/targets/common/target_lists.c
··· 72 72 #include "depthai/depthai_interface.h" 73 73 #endif 74 74 75 - #ifdef XRT_BUILD_DRIVER_QWERTY 76 - #include "qwerty/qwerty_interface.h" 77 - #endif 78 - 79 75 #ifdef XRT_BUILD_DRIVER_WMR 80 76 #include "wmr/wmr_interface.h" 81 77 #include "wmr/wmr_common.h" ··· 218 214 219 215 #ifdef XRT_BUILD_DRIVER_EUROC 220 216 euroc_create_auto_prober, 221 - #endif 222 - 223 - #ifdef XRT_BUILD_DRIVER_QWERTY 224 - qwerty_create_auto_prober, 225 217 #endif 226 218 227 219 #ifdef XRT_BUILD_DRIVER_SIMULATED