Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/include/razermouse_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
#define USB_DEVICE_ID_RAZER_VIPER_8KHZ 0x0091
#define USB_DEVICE_ID_RAZER_VIPER_ULTIMATE_WIRED 0x007A
#define USB_DEVICE_ID_RAZER_VIPER_ULTIMATE_WIRELESS 0x007B
#define USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED 0x00A5
#define USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS 0x00A6
#define USB_DEVICE_ID_RAZER_DEATHADDER_V2_PRO_WIRED 0x007C
#define USB_DEVICE_ID_RAZER_DEATHADDER_V2_PRO_WIRELESS 0x007D
#define USB_DEVICE_ID_RAZER_DEATHADDER_V2 0x0084
Expand Down
2 changes: 2 additions & 0 deletions src/lib/razerdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ bool is_mouse(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_BASILISK_V2:
case USB_DEVICE_ID_RAZER_VIPER_ULTIMATE_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_ULTIMATE_WIRELESS:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_DEATHADDER_V2:
case USB_DEVICE_ID_RAZER_DEATHADDER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_DEATHADDER_V2_PRO_WIRELESS:
Expand Down
10 changes: 10 additions & 0 deletions src/lib/razermouse_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ static int razer_get_report(IOUSBDeviceInterface **usb_dev, struct razer_report
case USB_DEVICE_ID_RAZER_NAGA_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_NAGA_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_ULTIMATE_RECEIVER:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
return razer_get_usb_response(usb_dev, index, request_report, index, response_report, RAZER_NEW_MOUSE_RECEIVER_WAIT_MIN_US);
break;

Expand Down Expand Up @@ -1713,6 +1715,8 @@ ssize_t razer_attr_read_get_battery(IOUSBDeviceInterface **usb_dev, char *buf)
case USB_DEVICE_ID_RAZER_LANCEHEAD_WIRELESS_WIRED:
case USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER:
case USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
report.transaction_id.id = 0x1f;
break;
}
Expand Down Expand Up @@ -1753,6 +1757,8 @@ ssize_t razer_attr_read_is_charging(IOUSBDeviceInterface **usb_dev, char *buf)
case USB_DEVICE_ID_RAZER_BASILISK_ULTIMATE:
case USB_DEVICE_ID_RAZER_LANCEHEAD_WIRELESS_RECEIVER:
case USB_DEVICE_ID_RAZER_LANCEHEAD_WIRELESS_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
report.transaction_id.id = 0x1f;
break;
}
Expand Down Expand Up @@ -1814,6 +1820,8 @@ ushort razer_attr_read_poll_rate(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER:
case USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
report.transaction_id.id = 0x1f;
break;
}
Expand Down Expand Up @@ -1907,6 +1915,8 @@ void razer_attr_write_poll_rate(IOUSBDeviceInterface **usb_dev, ushort polling_r
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER:
case USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRED:
case USB_DEVICE_ID_RAZER_VIPER_V2_PRO_WIRELESS:
report.transaction_id.id = 0x1f;
break;
}
Expand Down