Keyboard button event structure (event.key.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_KeyboardEvent
{/**< ::SDL_EVENT_KEY_DOWN or ::SDL_EVENT_KEY_UP */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The window with keyboard focus, if any */
SDL_WindowID windowID; /**< The keyboard instance id, or 0 if unknown or virtual */
SDL_KeyboardID which; /**< ::SDL_PRESSED or ::SDL_RELEASED */
Uint8 state; /**< Non-zero if this is a key repeat */
Uint8 repeat;
Uint8 padding2;
Uint8 padding3;/**< The key that was pressed or released */
SDL_Keysym keysym; } SDL_KeyboardEvent;
This struct is available since SDL 3.0.0.
CategoryAPI, CategoryAPIStruct