summaryrefslogtreecommitdiff
path: root/libwinnie/src/sdl/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'libwinnie/src/sdl/event.h')
-rw-r--r--libwinnie/src/sdl/event.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/libwinnie/src/sdl/event.h b/libwinnie/src/sdl/event.h
index 5c1db45..036dea5 100644
--- a/libwinnie/src/sdl/event.h
+++ b/libwinnie/src/sdl/event.h
@@ -26,22 +26,25 @@ class Window;
typedef void (*DisplayFuncType)(Window *win);
typedef void (*KeyboardFuncType)(Window *win, int key, bool pressed);
-typedef void (*MouseButtonFuncType)(Window *win, int bn, bool pressed, int x, int y);
+typedef void (*MouseButtonFuncType)(
+ Window *win, int bn, bool pressed, int x, int y);
typedef void (*MouseMotionFuncType)(Window *win, int x, int y);
typedef void (*TimerFuncType)(Window *win);
struct Callbacks {
- DisplayFuncType display;
- KeyboardFuncType keyboard;
- MouseButtonFuncType button;
- MouseMotionFuncType motion;
- TimerFuncType timer;
+ DisplayFuncType display;
+ KeyboardFuncType keyboard;
+ MouseButtonFuncType button;
+ MouseMotionFuncType motion;
+ TimerFuncType timer;
};
void process_events();
-enum TimerMode {TIMER_ONESHOT, TIMER_REPEAT};
+enum TimerMode { TIMER_ONESHOT, TIMER_REPEAT };
-void set_window_timer(Window *win, unsigned int msec, TimerMode mode = TIMER_ONESHOT);
+void set_window_timer(Window *win,
+ unsigned int msec,
+ TimerMode mode = TIMER_ONESHOT);
#endif