[PATCH xf86-input-synaptics v2 05/12] Add cumulative_d{x, y} to SynapticsHwState
Chase Douglas
chase.douglas at canonical.com
Fri Feb 10 12:00:44 PST 2012
These values will be used for buttonpad click and drag with two fingers.
Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
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
More information about the xorg-devel
mailing list