SDL_TextInputEvent

Keyboard text input event structure (event.text.*)

This event will never be delivered unless text input is enabled by calling SDL_StartTextInput(). Text input is disabled by default!

\since This struct is available since SDL 3.2.0.

\sa SDL_StartTextInput \sa SDL_StopTextInput

Members

Variables

reserved
Uint32 reserved;
Undocumented in source.
text
const(char)* text;

< The input text, UTF-8 encoded

timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_TEXT_INPUT

windowID
SDL_WindowID windowID;

< The window with keyboard focus, if any

Meta