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:
Jens Peters 2024-04-20 11:50:33 +02:00 committed by Consolatis
parent 63744951af
commit fb57d61f35
2 changed files with 232 additions and 30 deletions

View file

@ -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;