KarmaEngine
Game Engine for practical learning and research purposes
|
Base class for keyboard event. More...
#include <KeyEvent.h>
Public Member Functions | |
int | GetKeyCode () const |
Getter for key code of the keyboard event. | |
![]() | |
virtual EventType | GetEventType () const =0 |
Getter for event name (type) | |
virtual const char * | GetName () const =0 |
Getter for event type. | |
virtual int | GetCategoryFlags () const =0 |
Getter for category flags (enum EventCategory) | |
virtual std::string | ToString () const |
String representation of the event. | |
bool | IsInCategory (EventCategory category) |
Routine to see if the category of the Event is (or a part of) given category. | |
bool | IsHandled () const |
Getter for the m_Handled. | |
Event * | GetObjPointer () |
Getter for the pointer to the object. | |
Protected Member Functions | |
KeyEvent (int keycode) | |
A constructor. | |
Protected Attributes | |
int | m_KeyCode |
![]() | |
bool | m_Handled = false |
Base class for keyboard event.
|
inlineprotected |
A constructor.
keycode | GLFW defined key code for the event |
|
inline |
Getter for key code of the keyboard event.