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