d/wmr: Add support for Samsung Odyssey controllers

This commit is contained in:
Jakob Bornecrantz 2021-11-18 16:55:53 +00:00
parent 27a8ec675b
commit 673ac5ee6c
3 changed files with 5 additions and 0 deletions

View file

@ -43,6 +43,8 @@ extern "C" {
#define SAMSUNG_VID 0x04e8 #define SAMSUNG_VID 0x04e8
#define ODYSSEY_PID 0x7312 #define ODYSSEY_PID 0x7312
#define ODYSSEY_CONTROLLER_PID 0x065d
/*! /*!
* @} * @}

View file

@ -234,6 +234,7 @@ wmr_bt_controller_found(struct xrt_prober *xp,
switch (devices[index]->product_id) { switch (devices[index]->product_id) {
case WMR_CONTROLLER_PID: case WMR_CONTROLLER_PID:
case ODYSSEY_CONTROLLER_PID:
if (strncmp((char *)product_name, WMR_CONTROLLER_LEFT_PRODUCT_STRING, sizeof(product_name)) == 0) { if (strncmp((char *)product_name, WMR_CONTROLLER_LEFT_PRODUCT_STRING, sizeof(product_name)) == 0) {
controller_type = XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER; controller_type = XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER;
interface_controller = 0; interface_controller = 0;

View file

@ -130,6 +130,8 @@ struct xrt_prober_entry target_entry_list[] = {
#ifdef XRT_BUILD_DRIVER_WMR #ifdef XRT_BUILD_DRIVER_WMR
{MICROSOFT_VID, HOLOLENS_SENSORS_PID, wmr_found, "Microsoft HoloLens Sensors", "wmr"}, {MICROSOFT_VID, HOLOLENS_SENSORS_PID, wmr_found, "Microsoft HoloLens Sensors", "wmr"},
{MICROSOFT_VID, WMR_CONTROLLER_PID, wmr_bt_controller_found, "WMR Bluetooth controller", "wmr"}, {MICROSOFT_VID, WMR_CONTROLLER_PID, wmr_bt_controller_found, "WMR Bluetooth controller", "wmr"},
{MICROSOFT_VID, ODYSSEY_CONTROLLER_PID, wmr_bt_controller_found, "Odyssey Bluetooth controller", "wmr"},
#endif // XRT_BUILD_DRIVER_WMR #endif // XRT_BUILD_DRIVER_WMR
{0x0000, 0x0000, NULL, NULL, NULL}, // Terminate {0x0000, 0x0000, NULL, NULL, NULL}, // Terminate