diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-02-07 14:45:11 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-02-11 07:46:05 +1000 |
commit | 5cb5bb573491058c35bbaac5c4c4fceea4626f57 (patch) | |
tree | 059ebd47c5f49b97d03df2e634283e953ad21f2e /src/synproto.h | |
parent | 0df994b3d80006d2fb114226d8b488e98d0e03d4 (diff) |
Add touch valuator mask to hw state structure
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synproto.h')
-rw-r--r-- | src/synproto.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/synproto.h b/src/synproto.h index 8d50ce6..7ebca59 100644 --- a/src/synproto.h +++ b/src/synproto.h @@ -32,9 +32,19 @@ #include <xf86Xinput.h> #include <xisb.h> +#include "config.h" + struct _SynapticsPrivateRec; typedef struct _SynapticsPrivateRec SynapticsPrivate; +enum SynapticsSlotState +{ + SLOTSTATE_EMPTY = 0, + SLOTSTATE_OPEN, + SLOTSTATE_CLOSE, + SLOTSTATE_UPDATE, +}; + /* * A structure to describe the state of the touchpad hardware (buttons and pad) */ @@ -53,6 +63,12 @@ struct SynapticsHwState { Bool multi[8]; Bool middle; /* Some ALPS touchpads have a middle button */ + +#ifdef HAVE_MULTITOUCH + int num_mt_mask; + ValuatorMask **mt_mask; + enum SynapticsSlotState *slot_state; +#endif }; struct CommData { |