diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 09:43:13 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 09:43:13 +0100 |
commit | 502fb8e8d1dcfe10f55fdef2cdfb71afec806204 (patch) | |
tree | 8b967076cf0212f00d811e57264e3e0878c059c4 /src/crepe/api/EventManager.h | |
parent | da379a58033c0ef3c9c854326a3fca25d6e54319 (diff) |
pull script/event changes from `loek/collision-system`
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. |