|
CeresEngine 0.2.0
A game development framework
|
A structure that describes a key press event. More...
#include <CeresEngine/Input/InputEvent.hpp>
Public Attributes | |
| KeyEventType | type |
| The type of key event represented by the event structure. | |
| Button | button = Button::None |
| The button that has triggered the event. | |
| ModifierButton | modifiers |
| The set of modifier keys pressed alongside this button. | |
| bool | isRepeat = false |
| If set, indicates that the key is a repeat of a previous press. | |
| UInt32 | repeatCount = 0 |
| Defines the number of times the key press is repeating. | |
| UInt32 | scanCode = 0 |
| The system-specific scancode of the key. | |
Public Attributes inherited from CeresEngine::InputEvent | |
| double | timestamp = 0.0 |
| The time when the event occurred in seconds since system startup. | |
| PlatformWindow * | window = nullptr |
| The platform window that triggered the input event, if any. | |
Static Public Attributes | |
| static constexpr InputEventType | structType = InputEventType::Key |
| A value that determines the type of event represented by this event struct. | |
A structure that describes a key press event.
| Button CeresEngine::KeyEvent::button = Button::None |
The button that has triggered the event.
If set, indicates that the key is a repeat of a previous press.
| ModifierButton CeresEngine::KeyEvent::modifiers |
The set of modifier keys pressed alongside this button.
| UInt32 CeresEngine::KeyEvent::repeatCount = 0 |
Defines the number of times the key press is repeating.
| UInt32 CeresEngine::KeyEvent::scanCode = 0 |
The system-specific scancode of the key.
|
inlinestaticconstexpr |
A value that determines the type of event represented by this event struct.
| KeyEventType CeresEngine::KeyEvent::type |
The type of key event represented by the event structure.