mirror of
https://github.com/swaywm/sway.git
synced 2025-11-18 06:59:48 -05:00
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:
parent
875edc9c2f
commit
7e420cb6e4
10 changed files with 646 additions and 48 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue