diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-09 15:38:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-14 08:46:50 +1000 |
commit | a64e1632836067091be5ca45d0444c416bf48948 (patch) | |
tree | f2d9b8cf316c092279249621666633ab433eac5b /src/synproto.h | |
parent | 70b4e983c6626b9b20bdf59324f64b3fd99c5202 (diff) |
Add a BTN_EMULATED_FLAG to mark emulated buttons on clickfingers
And when copying the hardware state, don't copy those buttons that were set
through emulation.
This is a temporary fix only, we should add new fields to the hw struct that
represent the various features as they are enabled/disabled and then treat
them accordingly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src/synproto.h')
-rw-r--r-- | src/synproto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synproto.h b/src/synproto.h index 89392ac..5e8a804 100644 --- a/src/synproto.h +++ b/src/synproto.h @@ -45,6 +45,9 @@ enum SynapticsSlotState SLOTSTATE_UPDATE, }; +/* used to mark emulated hw button state */ +#define BTN_EMULATED_FLAG 0x80 + /* * A structure to describe the state of the touchpad hardware (buttons and pad) */ |