mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-27 13:53:37 +08:00
Fixed SDL_GetDefaultScancodeFromKey()
This commit is contained in:
parent
afec46dbee
commit
725b95dc84
@ -613,7 +613,7 @@ static SDL_Scancode SDL_GetDefaultScancodeFromKey(SDL_Keycode key, SDL_Keymod *m
|
|||||||
if (modstate) {
|
if (modstate) {
|
||||||
*modstate = SDL_KMOD_SHIFT;
|
*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) {
|
for (int i = 0; i < SDL_arraysize(normal_default_symbols); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user