input: always notify all tablet axis

Notify all axis based on the capabilities of the
tablet tool. At least GTK applications expect
this for e.g. smooth pressure or distance events.
This commit is contained in:
Jens Peters 2024-06-06 17:41:05 +02:00 committed by Johan Malm
parent ebe81ac591
commit f6c91c8d13
2 changed files with 40 additions and 15 deletions

View file

@ -15,7 +15,12 @@ struct drawing_tablet {
struct wlr_tablet *tablet;
struct wlr_tablet_v2_tablet *tablet_v2;
double x, y;
double distance;
double pressure;
double tilt_x, tilt_y;
double rotation;
double slider;
double wheel_delta;
struct {
struct wl_listener proximity;
struct wl_listener axis;