From 6ad244502d1c3c09a26012c5e7fad901c95cc38e Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 1 May 2026 21:38:49 +1200 Subject: Fix the buttons and implement hooks for future webkit bindings to build on top of --- include/saffron_event_hooks.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/saffron_event_hooks.h (limited to 'include/saffron_event_hooks.h') 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 + +/* 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 -- cgit v1.2.3