mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
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:
parent
b396c200d0
commit
1c67a1ff52
src/xrt
|
@ -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 */
|
||||
|
||||
|
||||
/*!
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue