3 static DisplayFuncType display_func;
4 static KeyboardFuncType keyboard_func;
5 static MouseButtonFuncType mouse_button_func;
6 static MouseMotionFuncType mouse_motion_func;
8 void set_display_callback(DisplayFuncType display)
10 display_func = display;
13 void set_keyboard_callback(KeyboardFuncType keyboard)
15 keyboard_func = keyboard;
18 void set_mouse_button_callback(MouseButtonFuncType mouse_button)
20 mouse_button_func = mouse_button;
23 void set_mouse_motion_callback(MouseMotionFuncType mouse_motion)
25 mouse_motion_func = mouse_motion;
28 DisplayFuncType get_display_callback()
33 KeyboardFuncType get_keyboard_callback()
38 MouseButtonFuncType get_mouse_button_callback()
40 return mouse_button_func;
43 MouseMotionFuncType get_mouse_motion_callback()
45 return mouse_motion_func;