1#ifndef MouseKeyEventManager_H
2#define MouseKeyEventManager_H
17class MouseKeyEventManager
62 MouseKeyEventManager() =
default;
63 MouseKeyEventManager(
const MouseKeyEventManager&) =
delete;
64 MouseKeyEventManager& operator=(
const MouseKeyEventManager&) =
delete;
65 ~MouseKeyEventManager() =
default;
71 MouseKeyEventManager(AZUL_MOUSE k);
Defines the event types for input handling.
EventType
Enum class representing the types of input events.
Definition EventType.h:19
InputableCollection keyPressCol
Collection of GameObjects for key press events.
Definition MouseKeyEventManager.h:44
InputableCollection keyReleaseCol
Collection of GameObjects for key release events.
Definition MouseKeyEventManager.h:54
InputableCollection keyHeldCol
Collection of GameObjects for key held events.
Definition MouseKeyEventManager.h:49
EventType eventState
The current event state of the key.
Definition MouseKeyEventManager.h:59
void ProcessMouseKeyEvent()
Processes all registered mouse key events.
Definition MouseKeyEventManager.cpp:54
InputableCollection::iterator CollectionIterator
Type alias for the collection iterator.
Definition MouseKeyEventManager.h:28
void Register(Inputable *in, EventType e)
Registers a GameObject for a specific event type.
Definition MouseKeyEventManager.cpp:16
std::list< Inputable * > InputableCollection
Type alias for the collection of inputable GameObjects.
Definition MouseKeyEventManager.h:23
InputableCollection keyInactiveCol
Collection of GameObjects for key inactive events.
Definition MouseKeyEventManager.h:39
AZUL_MOUSE key
The key associated with this manager.
Definition MouseKeyEventManager.h:34
bool IsEmpty()
Checks if the collection of GameObjects is empty.
Definition MouseKeyEventManager.cpp:100
void Deregister(Inputable *in, EventType e)
Deregisters a GameObject for a specific event type.
Definition MouseKeyEventManager.cpp:35