mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
input: support tablet tools with relative motion
This commit is contained in:
parent
b663c9ea46
commit
8501a1281c
2 changed files with 91 additions and 35 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue