Fixes layout detection for Lenovo Legion 7S
This commit is contained in:
parent
d67acee002
commit
f8d7eb8bb8
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue