diff options
author | Peter Osterlund <petero2@telia.com> | 2003-11-12 20:02:01 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:23 +0200 |
commit | 5181449a9ffb449ac55d943ab2b6905f97558d4f (patch) | |
tree | d4248f02e3adbb6a5df0af9a9f8b33a2dc6016d9 | |
parent | efbbea912111d1072b472cc1e38c57203a8059cd (diff) |
Removed compatibility code for old (<test6) 2.6 kernels.
-rw-r--r-- | synaptics.c | 33 | ||||
-rw-r--r-- | synaptics.h | 3 |
2 files changed, 1 insertions, 35 deletions
diff --git a/synaptics.c b/synaptics.c index 60781ec..3657111 100644 --- a/synaptics.c +++ b/synaptics.c @@ -1328,11 +1328,7 @@ SynapticsParseEventData(LocalDevicePtr local, SynapticsPrivate *priv, priv->hwState.x = ev.value; break; case ABS_Y: - if (priv->swapY) { - priv->hwState.y = YMAX_NOMINAL + YMIN_NOMINAL - ev.value; - } else { - priv->hwState.y = ev.value; - } + priv->hwState.y = ev.value; break; case ABS_PRESSURE: priv->hwState.z = ev.value; @@ -1342,33 +1338,6 @@ SynapticsParseEventData(LocalDevicePtr local, SynapticsPrivate *priv, break; } break; - case EV_MSC: - switch (ev.code) { - case MSC_GESTURE: - priv->swapY = TRUE; - switch (ev.value) { - case 0: - priv->hwState.oneFinger = FALSE; - priv->hwState.twoFingers = TRUE; - priv->hwState.threeFingers = FALSE; - priv->hwState.fingerWidth = 5; - break; - case 1: - priv->hwState.oneFinger = FALSE; - priv->hwState.twoFingers = FALSE; - priv->hwState.threeFingers = TRUE; - priv->hwState.fingerWidth = 5; - break; - default: - priv->hwState.oneFinger = TRUE; - priv->hwState.twoFingers = FALSE; - priv->hwState.threeFingers = FALSE; - priv->hwState.fingerWidth = ev.value; - break; - } - break; - } - break; } } return !Success; diff --git a/synaptics.h b/synaptics.h index 0546e89..87a3c11 100644 --- a/synaptics.h +++ b/synaptics.h @@ -147,9 +147,6 @@ typedef struct _SynapticsPrivateRec palm/finger contact disappears */ int prev_z; /* previous z value, for palm detection */ int avg_width; /* weighted average of previous fingerWidth values */ - - Bool swapY; /* Swap Y coordinate direction. For compatibility - with old 2.5/2.6 kernels. Will be removed. */ } SynapticsPrivate; |