diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:13:23 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:13:23 +0100 |
commit | 0e8fcca228e4a55c9553afc5dfed3a38f4c53a91 (patch) | |
tree | 0af7bbc3aeae7ff210fc3921df697341a989f01d /src/crepe/api | |
parent | 210ff1309aa545aa3574d991acc7734a1f268b8e (diff) | |
parent | ccc56c987dc69e2bdb20e58634d29c3bf89c44ad (diff) |
Merge branch 'wouter/events' into wouter/inputSystem
Diffstat (limited to 'src/crepe/api')
-rw-r--r-- | src/crepe/api/EventManager.h | 6 |
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. |