aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_event_hooks.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/saffron_event_hooks.h')
-rw-r--r--include/saffron_event_hooks.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/saffron_event_hooks.h b/include/saffron_event_hooks.h
new file mode 100644
index 0000000..92e689e
--- /dev/null
+++ b/include/saffron_event_hooks.h
@@ -0,0 +1,13 @@
+#ifndef SAFFRON_EVENT_HOOKS_H
+#define SAFFRON_EVENT_HOOKS_H
+
+#include <SDL3/SDL.h>
+
+/* this file will not be included in saffron.h. this is an internal file for internal hooking in the event loop. */
+
+typedef struct {
+ bool (*callback)(SDL_Event* event);
+ int priority; // higher num = higher priority
+} SfInternalEventHook;
+
+#endif