fix(razer): apply Tartarus V2 keypad LED layout in OpenRGB

This commit is contained in:
Wolfieee Wolf
2026-06-25 13:01:20 +10:00
committed by Adam Honse
parent c81f8699f1
commit ad7534d00d
2 changed files with 5 additions and 3 deletions

View File

@@ -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 |

View File

@@ -7523,7 +7523,7 @@ static const razer_device tartarus_pro_device =
};
/*-------------------------------------------------------------*\
| Razer Tartarus V2 1532:0208 |
| Razer Tartarus V2 1532:022B |
| |
| Zone "Keypad" |
| Matrix |