Fixed SDL_GetDefaultScancodeFromKey()

This commit is contained in:
Sam Lantinga committed 2024-08-05 19:46:45 -07:00
1 parent afec46dbee
commit 725b95dc84
1 file changed
+1 -1
+1 -1
View File
@@ -613,7 +613,7 @@ static SDL_Scancode SDL_GetDefaultScancodeFromKey(SDL_Keycode key, SDL_Keymod *m
if (modstate) {
*modstate = SDL_KMOD_SHIFT;
}
return (SDL_Scancode)(SDL_SCANCODE_A + key - 'Z');
return (SDL_Scancode)(SDL_SCANCODE_A + key - 'A');
}
for (int i = 0; i < SDL_arraysize(normal_default_symbols); ++i) {