---
name: "SDL_TextInputEvent"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_TextInputEvent"
---

# SDL\_TextInputEvent(3type)

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

## NAME

SDL\_TextInputEvent - Keyboard text input event structure (event.text.\*)

## HEADER FILE

Defined in SDL3/SDL\_events.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_TextInputEvent** **{**     **SDL\_EventType type; /\*\*\< SDL\_EVENT\_TEXT\_INPUT \*/**     **Uint32 reserved;**     **Uint64 timestamp;   /\*\*\< In nanoseconds, populated using SDL\_GetTicksNS() \*/**     **SDL\_WindowID windowID; /\*\*\< The window with keyboard focus, if any \*/**     **const char \*text;   /\*\*\< The input text, UTF-8 encoded \*/** **} SDL\_TextInputEvent;**

## DESCRIPTION

This event will never be delivered unless text input is enabled by calling

**SDL\_StartTextInput** (). Text input is disabled by default!

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_StartTextInput**(3)](/SDL_StartTextInput/3.md), **•**(3), [**SDL\_StopTextInput**(3)](/SDL_StopTextInput/3.md)
