From ccc56c987dc69e2bdb20e58634d29c3bf89c44ad Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Mon, 18 Nov 2024 16:13:08 +0100 Subject: added default parameters of channel --- src/crepe/api/EventManager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 - void unsubscribe(const EventHandler &, int channel); + void unsubscribe(const EventHandler &, 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 - 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 - void queue_event(EventType && event, int channel); + void queue_event(EventType && event, int channel = 0); /** * \brief Dispatch all queued events. -- cgit v1.2.3