DasKeyboard: Update detection of US keyboard, and minor change to keyboard layout.

This commit is contained in:
mike 2024-10-26 19:11:21 +00:00 committed by Adam Honse
parent 19a69f4139
commit fc3116e596
2 changed files with 7 additions and 7 deletions

View file

@ -66,17 +66,17 @@ std::string DasKeyboardController::GetVersionString()
std::string DasKeyboardController::GetLayoutString()
{
/*-----------------------------------------------------*\
| Experimental for now; should be '16' for US and '28' |
| for EU layout |
\*-----------------------------------------------------*/
/*-----------------------------------------------------------*\
| Experimental for now; should be '16 or 63' for US and '28' |
| for EU layout |
\*-----------------------------------------------------------*/
if(version.length() < 17)
{
return("NONE");
}
std::string layout_id = version.substr(3, 2);
if(layout_id == "16")
if(layout_id == "16" || layout_id == "63")
{
return("US");
}