The open source OpenXR runtime
0
fork

Configure Feed

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

d/wmr: Change public name for G2 controllers

Change the published device name for G2 controllers from the
generic 'WMR Controller'

authored by

Jan Schmidt and committed by
Jakob Bornecrantz
948d78fb 4b4fc2b7

+7
+7
src/xrt/drivers/wmr/wmr_controller_hp.c
··· 326 326 wcb->handle_input_packet = handle_input_packet; 327 327 328 328 wcb->base.name = XRT_DEVICE_HP_REVERB_G2_CONTROLLER; 329 + 330 + if (controller_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER) { 331 + snprintf(wcb->base.str, ARRAY_SIZE(wcb->base.str), "HP Reverb G2 Left Controller"); 332 + } else { 333 + snprintf(wcb->base.str, ARRAY_SIZE(wcb->base.str), "HP Reverb G2 Right Controller"); 334 + } 335 + 329 336 wcb->base.destroy = wmr_controller_hp_destroy; 330 337 wcb->base.update_inputs = wmr_controller_hp_update_xrt_inputs; 331 338 wcb->base.set_output = wmr_controller_hp_set_output;