libinput: Expose unaccelerated motion deltas in motion event struct
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
diff --git a/libweston/compositor.h b/libweston/compositor.h
index b1f8203..29cc8df 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -243,6 +243,7 @@
enum weston_pointer_motion_mask {
WESTON_POINTER_MOTION_ABS = 1 << 0,
WESTON_POINTER_MOTION_REL = 1 << 1,
+ WESTON_POINTER_MOTION_REL_UNACCEL = 1 << 2,
};
struct weston_pointer_motion_event {
@@ -251,6 +252,8 @@
double y;
double dx;
double dy;
+ double dx_unaccel;
+ double dy_unaccel;
};
struct weston_pointer_axis_event {