mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 19:16:21 +00:00
d/wmr: Change public name for G2 controllers
Change the published device name for G2 controllers from the generic 'WMR Controller'
This commit is contained in:
parent
4b4fc2b73d
commit
948d78fb61
|
@ -326,6 +326,13 @@ wmr_controller_hp_create(struct wmr_controller_connection *conn,
|
|||
wcb->handle_input_packet = handle_input_packet;
|
||||
|
||||
wcb->base.name = XRT_DEVICE_HP_REVERB_G2_CONTROLLER;
|
||||
|
||||
if (controller_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER) {
|
||||
snprintf(wcb->base.str, ARRAY_SIZE(wcb->base.str), "HP Reverb G2 Left Controller");
|
||||
} else {
|
||||
snprintf(wcb->base.str, ARRAY_SIZE(wcb->base.str), "HP Reverb G2 Right Controller");
|
||||
}
|
||||
|
||||
wcb->base.destroy = wmr_controller_hp_destroy;
|
||||
wcb->base.update_inputs = wmr_controller_hp_update_xrt_inputs;
|
||||
wcb->base.set_output = wmr_controller_hp_set_output;
|
||||
|
|
Loading…
Reference in a new issue