diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:13:08 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-18 16:13:08 +0100 |
commit | ccc56c987dc69e2bdb20e58634d29c3bf89c44ad (patch) | |
tree | a97d2a0ea156331a0f3d9c4a16f9bb584ef06d3b | |
parent | ad5a0e04aec5e9e9cbbd54a665eff748e31bc1dc (diff) |
added default parameters of channel
-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. |