Manages the registration and processing of keyboard events for GameObjects. More...
#include <KeyboardEventManager.h>
Public Member Functions | |
KeyboardEventManager (const KeyboardEventManager &)=delete | |
KeyboardEventManager & | operator= (const KeyboardEventManager &)=delete |
void | Register (Inputable *in, AZUL_KEY k, EventType e) |
Registers a keyboard event for a GameObject. | |
void | Deregister (Inputable *in, AZUL_KEY k, EventType e) |
Deregisters a keyboard event for a GameObject. | |
void | Register (Inputable *in, AZUL_MOUSE m, EventType e) |
Registers a mouse key event for a GameObject. | |
void | Deregister (Inputable *in, AZUL_MOUSE m, EventType e) |
Deregisters a mouse key event for a GameObject. | |
void | ProcessElements () |
Processes all registered keyboard events. | |
Private Types | |
using | MapKeyManager = std::multimap<AZUL_KEY, SingleKeyEventManager*> |
Type alias for the map of single key event managers. | |
using | MapMouseKeyManager = std::multimap<AZUL_MOUSE, MouseKeyEventManager*> |
Type alias for the map of mouse key event managers. | |
Private Attributes | |
MapKeyManager * | mapSKMgrs |
Pointer to the map of single key event managers. | |
MapMouseKeyManager * | mapMouseKeyMgrs |
Pointer to the map of mouse key event managers. | |
Manages the registration and processing of keyboard events for GameObjects.
The KeyboardEventManager class is responsible for managing the registration and processing of keyboard events for GameObjects. It provides methods to register, deregister, and process keyboard events.
Deregisters a keyboard event for a GameObject.
in | Pointer to the GameObject. |
k | The key to deregister. |
e | The event type to deregister. |
Deregisters a mouse key event for a GameObject.
in | Pointer to the GameObject. |
m | The mouse key to deregister. |
e | The event type to deregister. |
Registers a keyboard event for a GameObject.
in | Pointer to the GameObject. |
k | The key to register. |
e | The event type to register. |
Registers a mouse key event for a GameObject.
in | Pointer to the GameObject. |
m | The mouse key to register. |
e | The event type to register. |