Event fired when a keyboard key is pressed. More...
#include <KeyEvent.h>
Inherits Raven::Event.
Public Member Functions | |
| constexpr | KeyPressedEvent (KeyCode key, bool repeat) |
| Constructs a KeyPressedEvent. | |
| Public Member Functions inherited from Raven::Event | |
| constexpr bool | IsInCategory (EventCategory cat) const noexcept |
| Checks whether this event belongs to a given category. | |
Static Public Member Functions | |
| static constexpr EventType | StaticType () |
| Returns the static event type identifier. | |
| static constexpr EventCategory | StaticCategory () |
Public Attributes | |
| KeyCode | Key |
| Key that was pressed. | |
| bool | Repeat |
| True if this is a repeated key press (held down). | |
| Public Attributes inherited from Raven::Event | |
| EventType | Type = EventType::None |
| Concrete event type. | |
| EventCategory | Category = EventCategory::None |
| Event category bitmask. | |
Event fired when a keyboard key is pressed.
Contains the pressed key code and whether it was a repeated press.
|
inlineconstexpr |
Constructs a KeyPressedEvent.
| key | The key code of the pressed key. |
| repeat | True if this is a repeat press (key held down). |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Returns the static event type identifier.
| bool Raven::KeyPressedEvent::Repeat |
True if this is a repeated key press (held down).