![]() |
LuciadCPillar C# 2024.1.04
|
Implementation of IInputEvent
that represents keyboard input.
More...
Public Member Functions | |
KeyEvent (Luciad.Input.ButtonState state, Luciad.Input.KeyCode key, Luciad.Input.ModifierKeys modifierKeys) | |
Creates a key event. More... | |
KeyEvent (Luciad.Input.ButtonState state, Luciad.Input.KeyCode key, Luciad.Input.ModifierKeys modifierKeys, Luciad.Cartesian.Coordinate lastKnownLocation) | |
Creates a key event. More... | |
void | Dispose () |
Properties | |
Luciad.Input.KeyCode | Key [get] |
The key of the event. More... | |
Luciad.Cartesian.? Coordinate | LastKnownLocation [get] |
The last know location of the input device (for example the mouse cursor) when this event occurred. More... | |
Luciad.Input.ModifierKeys | ModifierKeys [get] |
The modifiers of the event. More... | |
Luciad.Input.ButtonState | State [get] |
The state of the key. More... | |
Implementation of IInputEvent
that represents keyboard input.
This class contains the button state, the key and the modifiers if any.
|
inline |
Creates a key event.
state | The state of the key. |
key | The key of the event. |
modifierKeys | The modifiers of the event. |
|
inline |
Creates a key event.
state | The state of the key. |
key | The key of the event. |
modifierKeys | The modifiers of the event. |
lastKnownLocation | The last known location of the mouse |
|
inline |
|
get |
The key of the event.
Returns the key of the event.
|
get |
The last know location of the input device (for example the mouse cursor) when this event occurred.
Returns the last know location of the input device (for example the mouse cursor) when this event occurred. It is expressed in screen coordinates (px) with top-left corner of the map being the (0,0) position.
|
get |
The modifiers of the event.
Returns the modifiers of the event.
|
get |
The state of the key.
Returns the state of the key.