aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar John Chadwick <johnwchadwick@gmail.com>2019-09-17 21:46:29 -0700
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-09-25 23:10:33 -0400
commit7e420cb6e4a334dea7296060820de12a768b76da (patch)
tree143678e6ff0a4b4223e2dfe30086eb5e2d2ab174 /include/sway/input/cursor.h
parentAdd support for fullscreen view direct scan-out (diff)
downloadsway-7e420cb6e4a334dea7296060820de12a768b76da.tar.gz
sway-7e420cb6e4a334dea7296060820de12a768b76da.tar.zst
sway-7e420cb6e4a334dea7296060820de12a768b76da.zip
input: Add support for tablet protocol.
Sway has basic support for drawing tablets, but does not expose properties such as pressure sensitivity. This implements the wlr tablet v2 protocol, providing tablet events to Wayland clients.
Diffstat (limited to 'include/sway/input/cursor.h')
-rw-r--r--include/sway/input/cursor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 516718c9..e46c9b18 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -21,6 +21,8 @@ struct sway_cursor {
21 struct sway_node *node; 21 struct sway_node *node;
22 } previous; 22 } previous;
23 struct wlr_xcursor_manager *xcursor_manager; 23 struct wlr_xcursor_manager *xcursor_manager;
24 struct wl_list tablets;
25 struct wl_list tablet_pads;
24 26
25 const char *image; 27 const char *image;
26 struct wl_client *image_client; 28 struct wl_client *image_client;
@@ -42,6 +44,7 @@ struct sway_cursor {
42 44
43 struct wl_listener tool_axis; 45 struct wl_listener tool_axis;
44 struct wl_listener tool_tip; 46 struct wl_listener tool_tip;
47 struct wl_listener tool_proximity;
45 struct wl_listener tool_button; 48 struct wl_listener tool_button;
46 uint32_t tool_buttons; 49 uint32_t tool_buttons;
47 50