InputEventType

Description

enum Tinman.Engine.Application.InputEventType

Enumeration of input event types.

Public / Constants

None

public constant None → (0:int32)

No input event.

Character

public constant Character → (1:int32)

A Unicode character has been typed.

The typed character can be read from InputEvent.Character. When the source of input events is an IApplicationWindow, it may be necessary to use IApplicationWindow.TextInputBegin and IApplicationWindow.TextInputEnd, in order to enable text input. On some platforms, additional user interfaces may be displayed while text input is enabled, such as screen keyboards or other input method editors.

Clicked

public constant Clicked → (2:int32)

A key or button has been clicked (i.e. pressed down and released quickly).

The definition of a "click" is provided by the current InputSettings.

Closing

public constant Closing → (3:int32)

The user has requested to close the window.

FocusGained

public constant FocusGained → (4:int32)

The application window has gained input focus.

For each keyboard key that is currently being pressed down, a Pressed event generated after FocusGained.

FocusLost

public constant FocusLost → (5:int32)

The application window has lost input focus.

For each keyboard key that is currently being pressed down, a Released event generated before FocusLost.

MouseEnter

public constant MouseEnter → (6:int32)

The mouse cursor has entered the application windows client area.

For each mouse button that is currently being pressed down, a Pressed event is generated after MouseEnter.

MouseLeave

public constant MouseLeave → (7:int32)

The mouse cursor has left the application windows client area.

For each mouse button that is currently being pressed down, a Released event is generated before MouseLeave.

MouseMove

public constant MouseMove → (8:int32)

The mouse has moved or the mouse wheel has rotated.

Pressed

public constant Pressed → (9:int32)

A key or button has been pressed down.

One of InputEvent.Key or InputEvent.Button depicts the pressed key resp. button. The other one will be KeyboardKey.None resp. MouseButton.None.

The state of a key or button (down or up) can be tracked solely with Pressed and Released events.

Released

public constant Released → (10:int32)

A key or button has been released.

One of InputEvent.Key or InputEvent.Button depicts the released key resp. button. The other one will be KeyboardKey.None resp. MouseButton.None.

The state of a key or button (down or up) can be tracked solely with Pressed and Released events.

Repeated

public constant Repeated → (11:int32)

A keyboard key is being held down.

Events of this type will only be sent between Pressed and Released, based on the current InputSettings. These events do not represent text input, instead they are intended to be used for controlling user interface components (scrolling, for example).

See also

InputEvent.Key