LuciadCPillar 2024.0.08
|
Implementation of luciad::IInputEvent
that represents keyboard input.
More...
#include <luciad/input/IInputEvent.h>
Public Member Functions | |
KeyEvent (ButtonState state, KeyCode key, ModifierKeys modifierKeys) | |
Creates a key event. More... | |
KeyEvent (ButtonState state, KeyCode key, ModifierKeys modifierKeys, Coordinate lastKnownLocation) | |
Creates a key event. More... | |
KeyCode | getKey () const noexcept |
Returns the key of the event. More... | |
std::optional< Coordinate > | getLastKnownLocation () const |
Returns the last know location of the input device (for example the mouse cursor) when this event occurred. More... | |
ModifierKeys | getModifierKeys () const noexcept |
Returns the modifiers of the event. More... | |
ButtonState | getState () const |
Returns the state of the key. More... | |
Public Member Functions inherited from luciad::IInputEvent | |
virtual | ~IInputEvent ()=default |
Implementation of luciad::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 |
|
inlinenoexcept |
Returns the key of the event.
|
inline |
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.
|
inlinenoexcept |
Returns the modifiers of the event.
|
inline |
Returns the state of the key.