mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Revert "Change SDL_Keycode
type to an enum"
SDL_Keycode can actually be any printable character on the keyboard, so isn't limited to the enumerated values of SDL_KeyCode.
This commit is contained in:
parent
33eaddc565
commit
e9ab2d46de
3 changed files with 19 additions and 18 deletions
|
@ -1671,7 +1671,7 @@ static void SDLTest_PrintEvent(const SDL_Event *event)
|
|||
SDL_strlcpy(modstr, "NONE", sizeof (modstr));
|
||||
}
|
||||
|
||||
SDL_Log("SDL EVENT: Keyboard: key %s in window %" SDL_PRIu32 ": scancode 0x%08X = %s, keycode 0x%08X = %s, mods = %s",
|
||||
SDL_Log("SDL EVENT: Keyboard: key %s in window %" SDL_PRIu32 ": scancode 0x%08X = %s, keycode 0x%08" SDL_PRIX32 " = %s, mods = %s",
|
||||
(event->type == SDL_EVENT_KEY_DOWN) ? "pressed" : "released",
|
||||
event->key.windowID,
|
||||
event->key.keysym.scancode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue