Skip to content

TSdlTextInputEvent

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

This event will never be delivered unless text input is enabled by calling TSdlWindow.StartTextInput. Text input is disabled by default!

Definition

Unit: Neslib.Sdl3.Events

type TSdlTextInputEvent = record ... end;

See Also

Properties

Name Description
Kind Event kind (TSdlEventKind.TextInput)
Text The input text
TextPtr Pointer to the input text
Timestamp In nanoseconds, populated using SdlGetTicksNS
Window The window with keyboard focus, if any
WindowID The ID of the window with keyboard focus, if any

Property Descriptions

Kind

Event kind (TSdlEventKind.TextInput)

property Kind: TSdlEventKind read GetKind

Type: TSdlEventKind


Text

The input text

property Text: String read GetText

Type: String


TextPtr

Pointer to the input text

property TextPtr: PUTF8Char read FHandle.text

Type: PUTF8Char


Timestamp

In nanoseconds, populated using SdlGetTicksNS

property Timestamp: UInt64 read FHandle.timestamp

Type: UInt64


Window

The window with keyboard focus, if any

property Window: TSdlWindow read GetWindow

Type: TSdlWindow


WindowID

The ID of the window with keyboard focus, if any

property WindowID: TSdlWindowID read FHandle.windowID

Type: TSdlWindowID