diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-20 11:56:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 11:56:39 -0500 |
commit | 373def44468e0c919031a6ffe3049f91680e05ca (patch) | |
tree | e40dfdcc9292a71fcc2160bc5d643a66996664dc /include/sway/input/cursor.h | |
parent | a51e74beb91a98181d6bc69137d377cd49e72d1f (diff) | |
parent | 63f7fb95172a72436698a1562b4f7ea1e9100a7e (diff) |
Merge pull request #1505 from acrisci/feature/input
input management and seat
Diffstat (limited to 'include/sway/input/cursor.h')
-rw-r--r-- | include/sway/input/cursor.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h new file mode 100644 index 00000000..2f70cf4b --- /dev/null +++ b/include/sway/input/cursor.h @@ -0,0 +1,30 @@ +#ifndef _SWAY_INPUT_CURSOR_H +#define _SWAY_INPUT_CURSOR_H + +#include "sway/input/seat.h" + +struct sway_cursor { + struct sway_seat *seat; + struct wlr_cursor *cursor; + struct wlr_xcursor_manager *xcursor_manager; + + double x, y; + + 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 |