Docs / UI

Glossary: ITextInputEvents

The members of ITextInputEvents, in alphabetical order.

Color legend event

The source of typed text and key presses, for a UI hosted outside a game window.

An interface. The quick start guide shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Events

OnKeyDown 🠆

EventHandler<InputKeyEventArgs>: a pressed key, sent to the element that has the keyboard and then up to its parents until one handles it.

Parameter Type Description
sender object The source of the input: for GameWindowTextInputEvents, the game window it passes on. The UI doesn’t use it.
e InputKeyEventArgs The pressed key (Key).

OnTextInput 🠆

EventHandler<TextInputEventArgs>: a typed character, sent to the element that has the keyboard.

Parameter Type Description
sender object The source of the input: for GameWindowTextInputEvents, the game window it passes on. The UI doesn’t use it.
e TextInputEventArgs The typed character (Character) and the key that typed it (Key).