< true if the key is pressed
< SDL virtual key code
< current key modifiers
< The platform dependent scancode for this event
< true if this is a key repeat
< SDL physical key code
< In nanoseconds, populated using SDL_GetTicksNS()
< SDL_EVENT_KEY_DOWN or SDL_EVENT_KEY_UP
< The keyboard instance id, or 0 if unknown or virtual
< The window with keyboard focus, if any
Keyboard button event structure (event.key.*)
The key is the base SDL_Keycode generated by pressing the scancode using the current keyboard layout, applying any options specified in SDL_HINT_KEYCODE_OPTIONS. You can get the SDL_Keycode corresponding to the event scancode and modifiers directly from the keyboard layout, bypassing SDL_HINT_KEYCODE_OPTIONS, by calling SDL_GetKeyFromScancode().
\since This struct is available since SDL 3.2.0.
\sa SDL_GetKeyFromScancode \sa SDL_HINT_KEYCODE_OPTIONS