![]() |
Raven Engine v0.1
|
Abstract base class for keyboard-related events. More...
#include <KeyEvent.h>
Public Member Functions | |
| int | GetKeyCode () const |
| Returns the key code associated with this event. | |
| Public Member Functions inherited from Raven::Event | |
| virtual | ~Event ()=default |
| virtual EventType | GetEventType () const =0 |
| Returns the runtime event type. | |
| virtual const char * | GetName () const =0 |
| Returns the name of the event. | |
| virtual EventCategory | GetCategoryFlags () const =0 |
| Returns the category flags of the event. | |
| virtual std::string | ToString () const |
| Converts the event to a string for logging or debugging. | |
| bool | IsInCategory (EventCategory category) const |
| Checks if the event belongs to the specified category. | |
Protected Member Functions | |
| KeyEvent (int keycode) | |
| Protected constructor for KeyEvent. | |
Protected Attributes | |
| int | m_KeyCode |
Additional Inherited Members | |
| Public Attributes inherited from Raven::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Abstract base class for keyboard-related events.
Stores the key code and defines the common interface for key events. Not intended to be instantiated directly.
|
inlineexplicitprotected |
Protected constructor for KeyEvent.
| keycode | The key code associated with this event. |
|
inlinenodiscard |
Returns the key code associated with this event.
|
protected |