mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-20 02:08:13 +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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user