aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/EventManager.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-18 16:13:23 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-18 16:13:23 +0100
commit0e8fcca228e4a55c9553afc5dfed3a38f4c53a91 (patch)
tree0af7bbc3aeae7ff210fc3921df697341a989f01d /src/crepe/api/EventManager.h
parent210ff1309aa545aa3574d991acc7734a1f268b8e (diff)
parentccc56c987dc69e2bdb20e58634d29c3bf89c44ad (diff)
Merge branch 'wouter/events' into wouter/inputSystem
Diffstat (limited to 'src/crepe/api/EventManager.h')
-rw-r--r--src/crepe/api/EventManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/EventManager.h b/src/crepe/api/EventManager.h
index c7c4744..92273df 100644
--- a/src/crepe/api/EventManager.h
+++ b/src/crepe/api/EventManager.h
@@ -50,7 +50,7 @@ public:
* \param channel The event ID to unsubscribe from.
*/
template <typename EventType>
- void unsubscribe(const EventHandler<EventType> &, int channel);
+ void unsubscribe(const EventHandler<EventType> &, int channel = 0);
/**
* \brief Trigger an event.
@@ -62,7 +62,7 @@ public:
* \param channel The channel from which to trigger the event (default is 0).
*/
template <typename EventType>
- void trigger_event(const EventType & event, int channel);
+ void trigger_event(const EventType & event, int channel = 0);
/**
* \brief Queue an event for later processing.
@@ -75,7 +75,7 @@ public:
* \param channel The channel number for the event (default is 0).
*/
template <typename EventType>
- void queue_event(EventType && event, int channel);
+ void queue_event(EventType && event, int channel = 0);
/**
* \brief Dispatch all queued events.