mirror of
https://github.com/swaywm/sway.git
synced 2026-02-28 01:41:02 -05:00
input/tablet: add tool_mode option to set tablet tools as relative input
Closes #4139.
This commit is contained in:
parent
136add4e12
commit
ed247c031c
10 changed files with 149 additions and 6 deletions
|
|
@ -11,11 +11,17 @@ struct sway_tablet {
|
|||
struct wlr_tablet_v2_tablet *tablet_v2;
|
||||
};
|
||||
|
||||
enum sway_tablet_tool_mode {
|
||||
SWAY_TABLET_TOOL_MODE_ABSOLUTE,
|
||||
SWAY_TABLET_TOOL_MODE_RELATIVE,
|
||||
};
|
||||
|
||||
struct sway_tablet_tool {
|
||||
struct sway_seat *seat;
|
||||
struct sway_tablet *tablet;
|
||||
struct wlr_tablet_v2_tablet_tool *tablet_v2_tool;
|
||||
|
||||
enum sway_tablet_tool_mode mode;
|
||||
double tilt_x, tilt_y;
|
||||
|
||||
struct wl_listener set_cursor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue