mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
input: add tablet-v2 notifications for axis and buttons
Similar like touch, this is guarded by checking if a surface accepts the tablet protocol. Also reuse common cursor logic. Intialize tablet tools on proximity. Notify idle manager about activity on events.
This commit is contained in:
parent
63744951af
commit
fb57d61f35
2 changed files with 232 additions and 30 deletions
|
|
@ -15,6 +15,7 @@ struct drawing_tablet {
|
|||
struct wlr_tablet *tablet;
|
||||
struct wlr_tablet_v2_tablet *tablet_v2;
|
||||
double x, y;
|
||||
double tilt_x, tilt_y;
|
||||
struct {
|
||||
struct wl_listener proximity;
|
||||
struct wl_listener axis;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue