From 26831a6eeac6762ad4d99532f62ebbab0827de10 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 9 Jun 2011 20:03:10 +0100 Subject: Scroll: Prepare ScrollData for smooth scrolling Convert ScrollData from up/down/left/right members for button presses, to more fine-grained delta_x and delta_y members, and move these to priv->scroll. Signed-off-by: Daniel Stone Reviewed-by: Peter Hutterer --- src/synapticsstr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/synapticsstr.h') diff --git a/src/synapticsstr.h b/src/synapticsstr.h index 5469b0c..1f6dc08 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -196,6 +196,8 @@ typedef struct _SynapticsPrivateRec struct { int last_x; /* last x-scroll position */ int last_y; /* last y-scroll position */ + double delta_x; /* accumulated horiz scroll delta */ + double delta_y; /* accumulated vert scroll delta */ double last_a; /* last angle-scroll position */ CARD32 last_millis; /* time last scroll event posted */ double coast_speed_x; /* Horizontal coasting speed */ -- cgit v1.2.3