summaryrefslogtreecommitdiffstats
path: root/sdl/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/event.h')
-rw-r--r--sdl/event.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sdl/event.h b/sdl/event.h
index 8b4d81b..468087b 100644
--- a/sdl/event.h
+++ b/sdl/event.h
@@ -1,7 +1,15 @@
#ifndef _EVENT_H_
#define _EVENT_H_
+/* a table holding function pointers to function that handle events */
+struct event_vtbl
+{
+ void (*keydown)(SDL_keysym *, const unsigned int *, const int);
+ void (*windowresize)(int, int);
+};
+
/* function prototypes */
+int event_handler_init(struct event_vtbl *);
void sdl_process_events(void);
void event_keydown(SDL_keysym *, const unsigned int *, const int);