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.
This commit is contained in:
John Chadwick 2019-09-17 21:46:29 -07:00 committed by Drew DeVault
parent 875edc9c2f
commit 7e420cb6e4
10 changed files with 646 additions and 48 deletions

View file

@ -21,6 +21,8 @@ struct sway_cursor {
struct sway_node *node;
} previous;
struct wlr_xcursor_manager *xcursor_manager;
struct wl_list tablets;
struct wl_list tablet_pads;
const char *image;
struct wl_client *image_client;
@ -42,6 +44,7 @@ struct sway_cursor {
struct wl_listener tool_axis;
struct wl_listener tool_tip;
struct wl_listener tool_proximity;
struct wl_listener tool_button;
uint32_t tool_buttons;