The open source OpenXR runtime
0
fork

Configure Feed

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

d/ht_ctrl_emu: Set xdev serial

+5 -1
+5 -1
src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp
··· 441 441 cemud[i]->base.device_type = 442 442 i ? XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER : XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER; 443 443 444 - //!@todo What should we do with the serial numbers? 445 444 int n = 446 445 snprintf(cemud[i]->base.str, XRT_DEVICE_NAME_LEN, "%s %s Hand", i ? "Right" : "Left", hands->str); 447 446 if (n > XRT_DEVICE_NAME_LEN) { 448 447 CEMU_DEBUG(cemud[i], "name truncated: %s", cemud[i]->base.str); 448 + } 449 + 450 + n = snprintf(cemud[i]->base.serial, XRT_DEVICE_NAME_LEN, "%s (%d)", hands->str, i); 451 + if (n > XRT_DEVICE_NAME_LEN) { 452 + CEMU_WARN(cemud[i], "serial truncated: %s", cemud[i]->base.str); 449 453 } 450 454 451 455 cemud[i]->ht_input_name =