SPARK
0.1.0
A general purpose game engine written in C++.
|
A class that represents a key typed event. More...
#include <KeyEvents.h>
Public Member Functions | |
KeyTypedEvent (base::KeyCode key) noexcept | |
Instantiates a new KeyTypedEvent for the given key. | |
![]() | |
base::KeyCode | keyCode () const noexcept |
Gets the key code of the key that triggered this event. | |
![]() | |
Event (const Event &other)=default | |
Event (Event &&other) noexcept=default | |
Event & | operator= (const Event &other)=default |
Event & | operator= (Event &&other) noexcept=default |
virtual EventType | eventType () const =0 |
Gets the type of the event. | |
virtual int | eventCategoryFlags () const =0 |
Gets the category flags of the event. | |
bool | isInCategory (const EventCategory &category) const |
Checks if the event is in the specified category. | |
![]() | |
HasRtti (const HasRtti &other)=default | |
HasRtti (HasRtti &&other) noexcept=default | |
HasRtti & | operator= (const HasRtti &other)=default |
HasRtti & | operator= (HasRtti &&other) noexcept=default |
virtual RttiBase & | rttiInstance () const =0 |
Additional Inherited Members | |
![]() | |
bool | handled = false |
![]() | |
KeyEvent (base::KeyCode key) noexcept | |
![]() | |
base::KeyCode | key |
A class that represents a key typed event.
|
explicitnoexcept |
Instantiates a new KeyTypedEvent for the given key.
key | The typed key. |