8000 Add support for Razer Basilisk V3 x Hyperspeed by szymonglowka · Pull Request #55 · 1kc/librazermacos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for Razer Basilisk V3 x Hyperspeed #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions src/include/razermouse_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
#define USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER 0x0094
#define USB_DEVICE_ID_RAZER_OROCHI_V2 0x0095
#define USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH 0x0095
#define USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED 0x00B9

/* Each keyboard report has 90 bytes*/
#define RAZER_REPORT_LEN 0x5A
Expand Down
1 change: 1 addition & 0 deletions src/lib/razerdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ bool is_mouse(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_ATHERIS_RECEIVER:
case USB_DEVICE_ID_RAZER_DEATHADDER_ESSENTIAL_2021:
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_ESSENTIAL:
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 @@ -61,6 +61,7 @@ static int razer_get_report(IOUSBDeviceInterface **usb_dev, struct razer_report
case USB_DEVICE_ID_RAZER_BASILISK_ULTIMATE_RECEIVER:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
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 @@ -591,6 +592,7 @@ ssize_t razer_attr_write_scroll_mode_wave(IOUSBDeviceInterface **usb_dev, const
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_effect_wave(VARSTORE, SCROLL_WHEEL_LED, direction, 0x28);
report.transaction_id.id = 0x1f;
break;
Expand Down Expand Up @@ -754,6 +756,7 @@ ssize_t razer_attr_write_scroll_mode_static(IOUSBDeviceInterface **usb_dev, cons
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_effect_static(VARSTORE, SCROLL_WHEEL_LED, (struct razer_rgb*)&buf[0]);
report.transaction_id.id = 0x1f;
break;
Expand Down Expand Up @@ -1085,6 +1088,7 @@ ssize_t razer_attr_write_scroll_mode_spectrum(IOUSBDeviceInterface **usb_dev, co
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_effect_spectrum(VARSTORE, SCROLL_WHEEL_LED);
report.transaction_id.id = 0x1f;
break;
Expand Down Expand Up @@ -1443,6 +1447,7 @@ ssize_t razer_attr_write_scroll_mode_none(IOUSBDeviceInterface **usb_dev, const
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_effect_none(VARSTORE, SCROLL_WHEEL_LED);
report.transaction_id.id = 0x1f;
break;
Expand Down Expand Up @@ -1844,6 +1849,7 @@ ushort razer_attr_read_poll_rate(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
case USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER:
case USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH:
report.transaction_id.id = 0x1f;
Expand Down Expand Up @@ -1939,6 +1945,7 @@ void razer_attr_write_poll_rate(IOUSBDeviceInterface **usb_dev, ushort polling_r
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
case USB_DEVICE_ID_RAZER_OROCHI_V2_RECEIVER:
case USB_DEVICE_ID_RAZER_OROCHI_V2_BLUETOOTH:
report.transaction_id.id = 0x1f;
Expand Down Expand Up @@ -2036,6 +2043,7 @@ ushort razer_attr_read_matrix_brightness(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_get_brightness(VARSTORE, 0x00);
report.transaction_id.id = 0x1F;
break;
Expand Down Expand Up @@ -2083,6 +2091,7 @@ ushort razer_attr_read_scroll_led_brightness(IOUSBDeviceInterface **usb_dev)
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_get_brightness(VARSTORE, SCROLL_WHEEL_LED);
report.transaction_id.id = 0x1f;
break;
Expand Down Expand Up @@ -2137,6 +2146,7 @@ void razer_attr_write_scroll_led_brightness(IOUSBDeviceInterface **usb_dev, unsi
case USB_DEVICE_ID_RAZER_BASILISK_V3:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRED:
case USB_DEVICE_ID_RAZER_BASILISK_V3_PRO_WIRELESS:
case USB_DEVICE_ID_RAZER_BASILISK_V3_X_HYPERSPEED:
report = razer_chroma_extended_matrix_brightness(VARSTORE, SCROLL_WHEEL_LED, brightness);
report.transaction_id.id = 0x1f;
break;
Expand Down
0