Color legend method event
An ITextInputEvents that forwards a MonoGame window’s events. The window constructor of BorrowedTorchUI creates and disposes one itself.
A class. 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.
Methods
GameWindowTextInputEvents() 🠆
GameWindowTextInputEvents(GameWindow window) · Subscribes to the window’s TextInput and KeyDown events.
| Parameter | Type | Description |
|---|---|---|
window |
GameWindow |
The window whose TextInput and KeyDown events are followed. |
Dispose() 🠆
Dispose() · Unsubscribes from the window.
Events
OnKeyDown
EventHandler<InputKeyEventArgs>
| Parameter | Type | Description |
|---|---|---|
sender |
object |
The game window, passed on from its KeyDown event. |
e |
InputKeyEventArgs |
The pressed key (Key), from the window’s KeyDown event. |
OnTextInput
EventHandler<TextInputEventArgs>
| Parameter | Type | Description |
|---|---|---|
sender |
object |
The game window, passed on from its TextInput event. |
e |
TextInputEventArgs |
The typed character (Character) and the key that typed it (Key), from the window’s TextInput event. |