summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-02-09 10:43:08 -0800
committerChase Douglas <chase.douglas@canonical.com>2012-02-11 23:01:09 +0100
commit9a1b10131cc55872e1b780acf54b45a7ec829b2f (patch)
treef898835227923087f9180df21803b490cdef5510
parentb87c75eda9a49f7466a51a5aca525f82fa4e1d07 (diff)
Add cumulative_d{x,y} to SynapticsHwState
These values will be used for buttonpad click and drag with two fingers. Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--src/synproto.c2
-rw-r--r--src/synproto.h2
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;