These values will be used for buttonpad click and drag with two fingers.

Signed-off-by: Chase Douglas <[email protected]>
---
 src/synproto.c |    2 ++
 src/synproto.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/synproto.c b/src/synproto.c
index 0426e8f..e945f1e 100644
--- a/src/synproto.c
+++ b/src/synproto.c
@@ -120,6 +120,8 @@ SynapticsCopyHwState(struct SynapticsHwState *dst,
     dst->x = src->x;
     dst->y = src->y;
     dst->z = src->z;
+    dst->cumulative_dx = src->cumulative_dx;
+    dst->cumulative_dy = src->cumulative_dy;
     dst->numFingers = src->numFingers;
     dst->fingerWidth = src->fingerWidth;
     dst->left = src->left;
diff --git a/src/synproto.h b/src/synproto.h
index 89392ac..29e8f3b 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -53,6 +53,8 @@ struct SynapticsHwState {
     int x;                     /* X position of finger */
     int y;                     /* Y position of finger */
     int z;                     /* Finger pressure */
+    int cumulative_dx;         /* Cumulative delta X for clickpad dragging */
+    int cumulative_dy;         /* Cumulative delta Y for clickpad dragging */
     int numFingers;
     int fingerWidth;
 
-- 
1.7.8.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to