diff options
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h index d6e317e..3e61043 100644 --- a/src/window.h +++ b/src/window.h @@ -11,6 +11,7 @@ enum imv_event_type { IMV_EVENT_KEYBOARD, IMV_EVENT_MOUSE_MOTION, IMV_EVENT_MOUSE_BUTTON, + IMV_EVENT_MOUSE_SCROLL, IMV_EVENT_CUSTOM }; @@ -34,6 +35,9 @@ struct imv_event { int button; bool pressed; } mouse_button; + struct { + double dx, dy; + } mouse_scroll; void *custom; } data; }; @@ -54,6 +58,8 @@ void imv_window_set_fullscreen(struct imv_window *window, bool fullscreen); bool imv_window_get_mouse_button(struct imv_window *window, int button); +void imv_window_get_mouse_position(struct imv_window *window, double *x, double *y); + void imv_window_present(struct imv_window *window); void imv_window_wait_for_event(struct imv_window *window, double timeout); |