[PATCH xf86-input-synaptics 05/12] Add cumulative_d{x, y} to SynapticsHwState
Chase Douglas
chase.douglas at canonical.com
Thu Feb 9 18:52:59 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/synaptics.c | 2 ++
src/synproto.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index a9b5b2d..662e060 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -3100,6 +3100,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 92833d0..47f58dc 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -51,6 +51,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