experiment #1: writing some pixels in the framebuffer device and cls
[winnie] / src / event.h
1 #ifndef EVENT_H_
2 #define EVENT_H_
3
4 typedef void (*DisplayFuncType)();
5 typedef void (*KeyboardFuncType)(int key, bool pressed);
6 typedef void (*MouseButtonFuncType)(int bn, bool pressed);
7 typedef void (*MouseMotionFuncType)(int x, int y);
8
9 void set_display_callback(DisplayFuncType display);
10 void set_keyboard_callback(KeyboardFuncType keyboard);
11 void set_mouse_button_callback(MouseButtonFuncType mouse_button);
12 void set_mouse_motion_callback(MouseMotionFuncType mouse_motion);
13
14 DisplayFuncType get_display_callback();
15 KeyboardFuncType get_keyboard_callback();
16 MouseButtonFuncType get_mouse_button_callback();
17 MouseMotionFuncType get_mouse_motion_callback();
18
19 #endif