#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); #endif