Commit 2633bbce authored by tildearrow's avatar tildearrow Committed by Adam Honse

add BlackWidow X Chroma support under Linux

parent 8a6886a9
......@@ -11,6 +11,7 @@ enum
{
RAZER_NO_DEVICE,
RAZER_BLACKWIDOW_CHROMA,
RAZER_BLACKWIDOW_X_CHROMA,
RAZER_DEATHSTALKER_CHROMA,
RAZER_ORNATA_CHROMA,
RAZER_BLADE_STEALTH,
......@@ -168,6 +169,13 @@ void RazerChroma::Initialize()
device_type = RAZER_BLACKWIDOW_CHROMA;
}
if(!strncmp(device_string, "Razer BlackWidow X Chroma", strlen("Razer BlackWidow X Chroma")))
{
//Device is Razer BlackWidow X Chroma
printf("BlackWidow X Chroma Detected\r\n");
device_type = RAZER_BLACKWIDOW_X_CHROMA;
}
if(!strncmp(device_string, "Razer DeathStalker Chroma", strlen("Razer DeathStalker Chroma")))
{
//Device is Razer DeathStalker Chroma
......@@ -324,6 +332,7 @@ void RazerChroma::Initialize()
{
//Devices with custom effect type and matrix
case RAZER_BLACKWIDOW_CHROMA:
case RAZER_BLACKWIDOW_X_CHROMA:
case RAZER_DEATHSTALKER_CHROMA:
case RAZER_ORNATA_CHROMA:
case RAZER_BLADE_STEALTH:
......@@ -505,6 +514,7 @@ bool RazerChroma::SetLEDs(COLORREF pixels[64][256])
{
case RAZER_ORNATA_CHROMA:
case RAZER_BLACKWIDOW_CHROMA:
case RAZER_BLACKWIDOW_X_CHROMA:
{
char BlackWidowEffect[((3 * 22)) + 3];
......
......@@ -281,6 +281,7 @@ Keyboard Visualizer allows you to save your custom settings in two different way
Keyboards
- BlackWidow Chroma (spectrograph)
- BlackWidow X Chroma (spectrograph)
- BlackWidow Chroma Tournament Edition (spectrograph)
- DeathStalker Chroma (horizontal bar)
- Razer Ornata Chroma (spectrograph)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment