aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-12-08 08:07:47 -0500
committerTony Crisci <tony@dubstepdish.com>2017-12-08 08:07:47 -0500
commitd76e745b738281fb98834fd5dee78f2a21727d80 (patch)
tree60d4c92b68788b1380f03481f70663b5cd67e57c /include/sway/input/cursor.h
parentec7fc42a00db8c230ca1a050f0a1f7badc697fa5 (diff)
input include directory
Diffstat (limited to 'include/sway/input/cursor.h')
-rw-r--r--include/sway/input/cursor.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
new file mode 100644
index 00000000..91421964
--- /dev/null
+++ b/include/sway/input/cursor.h
@@ -0,0 +1,26 @@
+#ifndef _SWAY_CURSOR_H
+#define _SWAY_CURSOR_H
+
+#include "sway/input/seat.h"
+
+struct sway_cursor {
+ struct wlr_cursor *cursor;
+
+ struct wl_listener motion;
+ struct wl_listener motion_absolute;
+ struct wl_listener button;
+ struct wl_listener axis;
+
+ struct wl_listener touch_down;
+ struct wl_listener touch_up;
+ struct wl_listener touch_motion;
+
+ struct wl_listener tool_axis;
+ struct wl_listener tool_tip;
+
+ struct wl_listener request_set_cursor;
+};
+
+struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
+
+#endif