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++) for (x = 0; x < 0x48; x++)
{ {
fkbkeys[x] = 0;
if (DTestButton(&fkbmap[x])) if (DTestButton(&fkbmap[x]))
{ {
fkbkeys[x] = 1; fkbkeys[x] = 1;
} }
else
{
fkbkeys[x] = 0;
}
} }
} }

View File

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