a51113f94937572c5e65e61d0d56e11400883491
[winnie] / src / event.h
1 #ifndef EVENT_H_
2 #define EVENT_H_
3
4 class Window;
5
6 typedef void (*DisplayFuncType)(Window* win);
7 typedef void (*KeyboardFuncType)(Window* win, int key, bool pressed);
8 typedef void (*MouseButtonFuncType)(Window *win, int bn, bool pressed, int x, int y);
9 typedef void (*MouseMotionFuncType)(Window *win, int x, int y);
10
11 struct Callbacks {
12         DisplayFuncType display;
13         KeyboardFuncType keyboard;
14         MouseButtonFuncType button;
15         MouseMotionFuncType motion;
16 };
17
18 void process_events();
19
20 #endif