aboutsummaryrefslogtreecommitdiff
path: root/include/client
diff options
context:
space:
mode:
Diffstat (limited to 'include/client')
-rw-r--r--include/client/window.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/client/window.h b/include/client/window.h
index 55a12225..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)(struct window *window, int x, int y, uint32_t button);
+ 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 {