diff options
author | Peter Osterlund <petero2@telia.com> | 2003-11-12 20:49:36 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:23 +0200 |
commit | 0a3ab4831d47ccde9f1ccfefbac16a0de1bbcf99 (patch) | |
tree | ee30099706179e0373dca035707ed6c7b2680070 /synaptics.h | |
parent | 5181449a9ffb449ac55d943ab2b6905f97558d4f (diff) |
Replaced the oneFinger, twoFingers and threeFingers
variables in SynapticsHwState with a single variable numFingers. This
is more logical, the old variables only existed because of
implementation details in the 2.6 kernel interface.
Diffstat (limited to 'synaptics.h')
-rw-r--r-- | synaptics.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/synaptics.h b/synaptics.h index 87a3c11..6538807 100644 --- a/synaptics.h +++ b/synaptics.h @@ -57,9 +57,7 @@ struct SynapticsHwState { int x; /* X position of finger */ int y; /* Y position of finger */ int z; /* Finger pressure */ - Bool oneFinger; - Bool twoFingers; - Bool threeFingers; + int numFingers; int fingerWidth; Bool left; @@ -147,6 +145,10 @@ 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 oneFinger; /* Used by SynapticsParseEventData to */ + Bool twoFingers; /* keep track of the number of fingers */ + Bool threeFingers; /* on the touchpad. */ } SynapticsPrivate; |