SDL 3.0
SDL_TextInputEvent Struct Reference

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint64 timestamp
 
SDL_WindowID windowID
 
char * text
 

Detailed Description

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

The text is owned by SDL and should be copied if the application wants to hold onto it beyond the scope of handling this event.

Definition at line 293 of file SDL_events.h.

Field Documentation

◆ text

char* SDL_TextInputEvent::text

The input text

Definition at line 298 of file SDL_events.h.

◆ timestamp

Uint64 SDL_TextInputEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 296 of file SDL_events.h.

◆ type

Uint32 SDL_TextInputEvent::type

SDL_EVENT_TEXT_INPUT

Definition at line 295 of file SDL_events.h.

◆ windowID

SDL_WindowID SDL_TextInputEvent::windowID

The window with keyboard focus, if any

Definition at line 297 of file SDL_events.h.


The documentation for this struct was generated from the following file: