blob: 468087b17f9a114dc864a5667678edda33260d3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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
|