d/wmr: Add HP Reverb G2 controller PID

Recognise the HP Reverb G2 WMR controller if it is directly
connected via bluetooth (instead of tunnelled through the
headset like it normally would be).
This commit is contained in:
Jan Schmidt 2021-11-30 14:57:56 +11:00
parent b396c200d0
commit 1c67a1ff52
3 changed files with 3 additions and 0 deletions
src/xrt

View file

@ -44,6 +44,7 @@ extern "C" {
#define SAMSUNG_VID 0x04e8
#define ODYSSEY_PID 0x7312
#define ODYSSEY_CONTROLLER_PID 0x065d
#define REVERB_G2_CONTROLLER_PID 0x066a /* On 0x045e Microsoft VID */
/*!

View file

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

View file

@ -130,6 +130,7 @@ struct xrt_prober_entry target_entry_list[] = {
#ifdef XRT_BUILD_DRIVER_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, REVERB_G2_CONTROLLER_PID, wmr_bt_controller_found, "HP Reverb G2 Bluetooth controller", "wmr"},
{MICROSOFT_VID, ODYSSEY_CONTROLLER_PID, wmr_bt_controller_found, "Odyssey Bluetooth controller", "wmr"},
#endif // XRT_BUILD_DRIVER_WMR