Skip to content

Commit 2633bbc

Browse files
tildearrowCalcProgrammer1
authored andcommitted
add BlackWidow X Chroma support under Linux
1 parent 8a6886a commit 2633bbc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

KeyboardVisualizerCommon/RazerChromaLinux.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ enum
1111
{
1212
RAZER_NO_DEVICE,
1313
RAZER_BLACKWIDOW_CHROMA,
14+
RAZER_BLACKWIDOW_X_CHROMA,
1415
RAZER_DEATHSTALKER_CHROMA,
1516
RAZER_ORNATA_CHROMA,
1617
RAZER_BLADE_STEALTH,
@@ -168,6 +169,13 @@ void RazerChroma::Initialize()
168169

169170
device_type = RAZER_BLACKWIDOW_CHROMA;
170171
}
172+
if(!strncmp(device_string, "Razer BlackWidow X Chroma", strlen("Razer BlackWidow X Chroma")))
173+
{
174+
//Device is Razer BlackWidow X Chroma
175+
printf("BlackWidow X Chroma Detected\r\n");
176+
177+
device_type = RAZER_BLACKWIDOW_X_CHROMA;
178+
}
171179
if(!strncmp(device_string, "Razer DeathStalker Chroma", strlen("Razer DeathStalker Chroma")))
172180
{
173181
//Device is Razer DeathStalker Chroma
@@ -324,6 +332,7 @@ void RazerChroma::Initialize()
324332
{
325333
//Devices with custom effect type and matrix
326334
case RAZER_BLACKWIDOW_CHROMA:
335+
case RAZER_BLACKWIDOW_X_CHROMA:
327336
case RAZER_DEATHSTALKER_CHROMA:
328337
case RAZER_ORNATA_CHROMA:
329338
case RAZER_BLADE_STEALTH:
@@ -505,6 +514,7 @@ bool RazerChroma::SetLEDs(COLORREF pixels[64][256])
505514
{
506515
case RAZER_ORNATA_CHROMA:
507516
case RAZER_BLACKWIDOW_CHROMA:
517+
case RAZER_BLACKWIDOW_X_CHROMA:
508518
{
509519
char BlackWidowEffect[((3 * 22)) + 3];
510520

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ Keyboard Visualizer allows you to save your custom settings in two different way
281281

282282
Keyboards
283283
- BlackWidow Chroma (spectrograph)
284+
- BlackWidow X Chroma (spectrograph)
284285
- BlackWidow Chroma Tournament Edition (spectrograph)
285286
- DeathStalker Chroma (horizontal bar)
286287
- Razer Ornata Chroma (spectrograph)

0 commit comments

Comments
 (0)