aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/EventManager.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-22 13:31:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-22 13:31:15 +0100
commitc0f0cc3d95eed2b24d19a157933c2a0ff5d2d4c2 (patch)
treefecc238a33a5e0cc663bef7bb93ddea694c50cb0 /src/crepe/api/EventManager.h
parent07bca38a27f794ed6a2f74536f7a909530ce7df0 (diff)
parent25054cca2a8d06d1ceb60451db8dc383bc629eb8 (diff)
Merge branch 'loek/scripts'
Diffstat (limited to 'src/crepe/api/EventManager.h')
-rw-r--r--src/crepe/api/EventManager.h4
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.