aboutsummaryrefslogtreecommitdiff
path: root/src/sample_cli.c
diff options
context:
space:
mode:
authorKen Chen <[email protected]>2021-08-07 13:59:30 +1000
committerGitHub <[email protected]>2021-08-07 13:59:30 +1000
commitf6aa74b5c29ae7e56be7ed50f494528928e4fd99 (patch)
tree046eea1eb033ac4c95e012b8c86ad8993dc35d8c /src/sample_cli.c
parent980f2134e78ddaaf47378cf4a74414808b89af7a (diff)
parentcc2d05d731a3436167df5cc4dadc79f7f7b00999 (diff)
downloadlibrazermacos-f6aa74b5c29ae7e56be7ed50f494528928e4fd99.tar.xz
librazermacos-f6aa74b5c29ae7e56be7ed50f494528928e4fd99.zip
Merge pull request #8 from ryan-idea42/dev/add-blackwidow-v3-pro-support
Adding support for Razer BlackWidow V3 Pro
Diffstat (limited to 'src/sample_cli.c')
-rw-r--r--src/sample_cli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sample_cli.c b/src/sample_cli.c
index 5236c23..876f2ed 100644
--- a/src/sample_cli.c
+++ b/src/sample_cli.c
@@ -11,6 +11,13 @@ int main(int argc, const char * argv[]) {
for (int i = 0; i < allDevices.size; i++) {
RazerDevice device = razerDevices[i];
printf("%#06x\n", device.productId);
+
+ // Testing out the blackwidow v3 pro changes by switching to wave
+ if (device.productId == 0x025A)
+ {
+ printf("Found blackwidow v3 pro keyboard (wired)\n");
+ razer_attr_write_mode_wave(device.usbDevice, "1", 0, 0x90);
+ }
}
closeAllRazerDevices(allDevices);