---
name: "SDL_TextInputType"
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_TextInputType"
---

# SDL\_TextInputType(3type)

Text input type.

## NAME

SDL\_TextInputType - Text input type.

## HEADER FILE

Defined in SDL3/SDL\_keyboard.h

## SYNOPSIS

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

**typedef enum SDL\_TextInputType** **{**     **SDL\_TEXTINPUT\_TYPE\_TEXT,                        /\*\*\< The input is text \*/**     **SDL\_TEXTINPUT\_TYPE\_TEXT\_NAME,                   /\*\*\< The input is a person's name \*/**     **SDL\_TEXTINPUT\_TYPE\_TEXT\_EMAIL,                  /\*\*\< The input is an e-mail address \*/**     **SDL\_TEXTINPUT\_TYPE\_TEXT\_USERNAME,               /\*\*\< The input is a username \*/**     **SDL\_TEXTINPUT\_TYPE\_TEXT\_PASSWORD\_HIDDEN,        /\*\*\< The input is a secure password that is hidden \*/**     **SDL\_TEXTINPUT\_TYPE\_TEXT\_PASSWORD\_VISIBLE,       /\*\*\< The input is a secure password that is visible \*/**     **SDL\_TEXTINPUT\_TYPE\_NUMBER,                      /\*\*\< The input is a number \*/**     **SDL\_TEXTINPUT\_TYPE\_NUMBER\_PASSWORD\_HIDDEN,      /\*\*\< The input is a secure PIN that is hidden \*/**     **SDL\_TEXTINPUT\_TYPE\_NUMBER\_PASSWORD\_VISIBLE      /\*\*\< The input is a secure PIN that is visible \*/** **} SDL\_TextInputType;**

## DESCRIPTION

These are the valid values for

**SDL\_PROP\_TEXTINPUT\_TYPE\_NUMBER** . Not every value is valid on every platform, but where a value isn't supported, a reasonable fallback will be used.

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_StartTextInputWithProperties**(3)](/SDL_StartTextInputWithProperties/3.md)
