input: support tablet tools with relative motion

This commit is contained in:
Jens Peters 2024-07-05 06:09:37 +02:00 committed by Johan Malm
parent b663c9ea46
commit 8501a1281c
2 changed files with 91 additions and 35 deletions

View file

@ -9,12 +9,18 @@ struct seat;
struct wlr_device;
struct wlr_input_device;
enum lab_tablet_motion_mode {
LAB_TABLET_MOTION_ABSOLUTE = 0,
LAB_TABLET_MOTION_RELATIVE,
};
struct drawing_tablet {
struct wlr_input_device *wlr_input_device;
struct seat *seat;
struct wlr_tablet *tablet;
struct wlr_tablet_v2_tablet *tablet_v2;
double x, y;
enum lab_tablet_motion_mode motion_mode;
double x, y, dx, dy;
double distance;
double pressure;
double tilt_x, tilt_y;