SDL_TextInputEvent - Keyboard text input event structure (event.text.*)
Contents
Availability
This struct is available since SDL 3.2.0.
Description
This event will never be delivered unless text input is enabled by calling SDL_StartTextInput(). Text
input is disabled by default!
Name
SDL_TextInputEvent - Keyboard text input event structure (event.text.*)
See Also
SDL_StartTextInput(3), SDL_StopTextInput(3) Simple Directmedia Layer SDL 3.2.20 SDL_TextInputEvent(3type)
Synopsis
#include<SDL3/SDL_events.h>typedefstructSDL_TextInputEvent{SDL_EventTypetype;/**<SDL_EVENT_TEXT_INPUT*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowwithkeyboardfocus,ifany*/constchar*text;/**<Theinputtext,UTF-8encoded*/}SDL_TextInputEvent;