A structure that contains keyboard text editing event information.
Uint32 |
type |
SDL_EVENT_TEXT_EDITING |
Uint32 |
timestamp |
timestamp of the event |
Uint32 |
windowID |
the window with keyboard focus, if any |
char[32] |
text |
the null-terminated editing text in UTF-8 encoding |
Sint32 |
start |
the location to begin editing from |
Sint32 |
length |
the number of characters to edit from the start point |
SDL_TextEditingEvent is a member of the SDL_Event union and is used when an event of type SDL_EVENT_TEXT_EDITING is reported. You would access it through the event's edit
field.
There is a tutorial.
CategoryStruct, CategoryEvents