diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-11 23:15:23 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-11 23:15:23 -0500 |
| commit | 444e467057133a4144c1e5dec8b8638f2f645fa8 (patch) | |
| tree | cdd0bab3f262b850bc2431d941a2841c20b65dfc /include/client/window.h | |
| parent | 7df419d0967bea115d5c9c2ad54dfed3bf5a21b3 (diff) | |
Enable windows to register to get notified when the mouse wheel is scrolled
Diffstat (limited to 'include/client/window.h')
| -rw-r--r-- | include/client/window.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/client/window.h b/include/client/window.h index 98d19a2b..e07e3509 100644 --- a/include/client/window.h +++ b/include/client/window.h @@ -27,11 +27,20 @@ struct cursor { struct wl_poitner *pointer; }; +enum scroll_direction { + SCROLL_UP, + SCROLL_DOWN, + SCROLL_LEFT, + SCROLL_RIGHT, +}; + struct pointer_input { int last_x; int last_y; void (*notify_button)(struct window *window, int x, int y, uint32_t button); + + void (*notify_scroll)(struct window *window, enum scroll_direction direction); }; struct window { |
