mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-06-25 14:10:59 -04:00
fix(razer): apply Tartarus V2 keypad LED layout in OpenRGB
This commit is contained in:
committed by
Adam Honse
parent
c81f8699f1
commit
ad7534d00d
@@ -175,7 +175,8 @@ void RGBController_Razer::SetupZones()
|
||||
\*---------------------------------------------------------*/
|
||||
if(new_zone.type == ZONE_TYPE_MATRIX)
|
||||
{
|
||||
if(new_zone.name == ZONE_EN_KEYBOARD && device_list[device_index]->layout != NULL)
|
||||
if(device_list[device_index]->layout != NULL &&
|
||||
(new_zone.name == ZONE_EN_KEYBOARD || new_zone.name == "Keypad"))
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| Dynamically generate a keyboard layout |
|
||||
@@ -212,7 +213,8 @@ void RGBController_Razer::SetupZones()
|
||||
new_map->width = device_list[device_index]->zones[zone_id]->cols;
|
||||
new_map->map = new unsigned int[new_map->height * new_map->width];
|
||||
|
||||
if(device_list[device_index]->layout->base_size != KEYBOARD_SIZE::KEYBOARD_SIZE_EMPTY)
|
||||
if(device_list[device_index]->layout->base_size != KEYBOARD_SIZE::KEYBOARD_SIZE_EMPTY ||
|
||||
!device_list[device_index]->layout->edit_keys.empty())
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| Minor adjustments to keyboard layout |
|
||||
|
||||
@@ -7523,7 +7523,7 @@ static const razer_device tartarus_pro_device =
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------*\
|
||||
| Razer Tartarus V2 1532:0208 |
|
||||
| Razer Tartarus V2 1532:022B |
|
||||
| |
|
||||
| Zone "Keypad" |
|
||||
| Matrix |
|
||||
|
||||
Reference in New Issue
Block a user