aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swaybar/input.h')
-rw-r--r--include/swaybar/input.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/swaybar/input.h b/include/swaybar/input.h
index 65e49218..e8735d88 100644
--- a/include/swaybar/input.h
+++ b/include/swaybar/input.h
@@ -2,6 +2,7 @@
2#define _SWAYBAR_INPUT_H 2#define _SWAYBAR_INPUT_H
3 3
4#include <wayland-client.h> 4#include <wayland-client.h>
5#include <stdbool.h>
5#include "list.h" 6#include "list.h"
6 7
7#define SWAY_SCROLL_UP KEY_MAX + 1 8#define SWAY_SCROLL_UP KEY_MAX + 1
@@ -9,6 +10,9 @@
9#define SWAY_SCROLL_LEFT KEY_MAX + 3 10#define SWAY_SCROLL_LEFT KEY_MAX + 3
10#define SWAY_SCROLL_RIGHT KEY_MAX + 4 11#define SWAY_SCROLL_RIGHT KEY_MAX + 4
11 12
13#define SWAY_CONTINUOUS_SCROLL_TIMEOUT 1000
14#define SWAY_CONTINUOUS_SCROLL_THRESHOLD 10000
15
12struct swaybar; 16struct swaybar;
13struct swaybar_output; 17struct swaybar_output;
14 18
@@ -50,6 +54,12 @@ struct swaybar_hotspot {
50 void *data; 54 void *data;
51}; 55};
52 56
57struct swaybar_scroll_axis {
58 wl_fixed_t value;
59 uint32_t discrete_steps;
60 uint32_t update_time;
61};
62
53struct swaybar_seat { 63struct swaybar_seat {
54 struct swaybar *bar; 64 struct swaybar *bar;
55 uint32_t wl_name; 65 uint32_t wl_name;
@@ -57,6 +67,7 @@ struct swaybar_seat {
57 struct swaybar_pointer pointer; 67 struct swaybar_pointer pointer;
58 struct swaybar_touch touch; 68 struct swaybar_touch touch;
59 struct wl_list link; // swaybar_seat:link 69 struct wl_list link; // swaybar_seat:link
70 struct swaybar_scroll_axis axis[2];
60}; 71};
61 72
62extern const struct wl_seat_listener seat_listener; 73extern const struct wl_seat_listener seat_listener;