#ifndef _EVENT_H_ #define _EVENT_H_ struct platform; /* a table holding function pointers to functions 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 platform *, struct event_vtbl *); void sdl_process_events(void); void event_keydown(SDL_keysym *, const unsigned int *, const int); #endif