diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-22 14:42:29 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-22 14:42:29 +0100 |
commit | 90f793932e40b2e1328c513a91830acb1a720f26 (patch) | |
tree | df0abeb829de1b9c3387de133eb111e0dbd0534a /src/crepe/api/EventManager.h | |
parent | a11b647bec22890be44d68d15de6b73f8955722d (diff) | |
parent | 7e2a5ee035524fff798d8f480e56aeca6b775f90 (diff) |
Merge remote-tracking branch 'origin/master' into max/vector2
Diffstat (limited to 'src/crepe/api/EventManager.h')
-rw-r--r-- | src/crepe/api/EventManager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/EventManager.h b/src/crepe/api/EventManager.h index 348a04d..1a33023 100644 --- a/src/crepe/api/EventManager.h +++ b/src/crepe/api/EventManager.h @@ -77,7 +77,7 @@ public: * \param channel The channel to trigger the event on (default is CHANNEL_ALL, which triggers on all channels). */ template <typename EventType> - void trigger_event(const EventType & event, event_channel_t channel = CHANNEL_ALL); + void trigger_event(const EventType & event = {}, event_channel_t channel = CHANNEL_ALL); /** * \brief Queue an event for later processing. @@ -89,7 +89,7 @@ public: * \param channel The channel to associate with the event (default is CHANNEL_ALL). */ template <typename EventType> - void queue_event(const EventType & event, event_channel_t channel = CHANNEL_ALL); + void queue_event(const EventType & event = {}, event_channel_t channel = CHANNEL_ALL); /** * \brief Process all queued events. |