Bug fix for family keyboard mapping of caret character. Fix for family keyboard potential data tearing on key state. For issue #464

This commit is contained in:
mjbudd77 2022-02-23 04:55:43 -05:00
parent 04e39e4fc9
commit d767153531
2 changed files with 7 additions and 5 deletions

View File

@ -1838,12 +1838,14 @@ static void UpdateFKB()
for (x = 0; x < 0x48; x++)
{
fkbkeys[x] = 0;
if (DTestButton(&fkbmap[x]))
{
fkbkeys[x] = 1;
}
else
{
fkbkeys[x] = 0;
}
}
}

View File

@ -401,9 +401,9 @@ SDL_Scancode convQtKey2SDLScanCode(Qt::Key q)
case Key_BracketRight:
s = SDL_SCANCODE_RIGHTBRACKET;
break;
//case Key_AsciiCircum:
// s = SDL_SCANCODE_UNKNOWN;
//break;
case Key_AsciiCircum:
s = SDL_SCANCODE_6;
break;
case Key_Underscore:
s = SDL_SCANCODE_MINUS;
break;