summaryrefslogtreecommitdiff
path: root/src/synapticsstr.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2011-06-09 20:03:10 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2011-10-18 16:07:33 +1000
commit26831a6eeac6762ad4d99532f62ebbab0827de10 (patch)
tree0389f24bc850694ddeedf939107c333964875fa4 /src/synapticsstr.h
parent7c0361d4ec6b1f1325cb6551d0ee2e7f5cfae15b (diff)
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 <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r--src/synapticsstr.h2
1 files changed, 2 insertions, 0 deletions
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 */