LuciadCPillar 2023.1.04
|
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 |
std::optional< Coordinate > | getLastKnownLocation () const |
ModifierKeys | getModifierKeys () const noexcept |
ButtonState | getState () const |
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 |
|
inline |
|
inlinenoexcept |
|
inline |