aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/tablet_tool.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-02 20:13:10 -0400
committerTony Crisci <tony@dubstepdish.com>2017-11-02 20:31:19 -0400
commit53021f8ed428a1a023769339e6162bfebbe4c7a2 (patch)
treee7b29dc916ba6e35d8adc8e8225ba3b4e24f53ad /include/rootston/tablet_tool.h
parent80b4a2f64c51de4a257182e381977710a5fbeb10 (diff)
rootston: break up input.h
Diffstat (limited to 'include/rootston/tablet_tool.h')
-rw-r--r--include/rootston/tablet_tool.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/rootston/tablet_tool.h b/include/rootston/tablet_tool.h
new file mode 100644
index 00000000..72ebf6d8
--- /dev/null
+++ b/include/rootston/tablet_tool.h
@@ -0,0 +1,20 @@
+#ifndef _ROOTSTON_TABLET_TOOL_H
+#define _ROOTSTON_TABLET_TOOL_H
+
+#include <wayland-server.h>
+#include "rootston/input.h"
+
+struct roots_tablet_tool {
+ struct roots_input *input;
+ struct wlr_input_device *device;
+ struct wl_listener axis;
+ struct wl_listener proximity;
+ struct wl_listener tip;
+ struct wl_listener button;
+ struct wl_list link;
+};
+
+void tablet_tool_add(struct wlr_input_device *device, struct roots_input *input);
+void tablet_tool_remove(struct wlr_input_device *device, struct roots_input *input);
+
+#endif