Fixes layout detection for Lenovo Legion 7S

This commit is contained in:
Peter Vazny 2022-12-08 04:39:17 +00:00 committed by Adam Honse
parent d67acee002
commit f8d7eb8bb8

View file

@ -156,14 +156,14 @@ RGBController_LenovoUSB::RGBController_LenovoUSB(LenovoUSBController* controller
break;
case LEGION_Y760S:
response = controller->getInformation(0x02);
response = controller->getInformation(0x01);
if(response.size() > 4)
{
if(response[4] == 41)
if(response[4] == 0x97)
{
keyboard_type = JAPAN;
}
else if(response[4] >= 16 && response[4] <=40)
else if(response[4] == 0x8F)
{
keyboard_type = ISO;
}