IInputConsumer
Description
- Extended by
-
Component abstract
IApplication
IInputConsumerEx
ISceneEntityView
IWidgetGui
Base interface for classes that consume input events (see InputEvent).
Public / Methods
ConsumeInput
Consumes the given user input event.
Input events are provided to an IInputConsumer object only if it has the input focus (see InputEventType.FocusGained and InputEventType.FocusLost). Mouse events are provided when the mouse cursor is inside of the input bounds (InputEventType.MouseEnter and InputEventType.MouseLeave). The InputEventType.Closing event can be provided at any time.
-
InputEventType.FocusGained: gained input focus
-
Keyboard events:
-
InputEventType.Pressed: key has been pressed down.
-
InputEventType.Released: key has been released.
-
InputEventType.Clicked: key has been clicked.
-
InputEventType.Character: a character has been typed.
-
-
Mouse events:
-
InputEventType.FocusLost: lost input focus
-
InputEventType.Closing: user request to shut down
Mouse cursor coordinates that are provided with InputEvent.MouseCursor refer to the client-area of the enclosing application window.