diff options
Diffstat (limited to 'src/synproto.h')
-rw-r--r-- | src/synproto.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/synproto.h b/src/synproto.h index 89392ac..95ebc92 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) */ @@ -53,6 +56,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; @@ -115,4 +120,6 @@ extern void SynapticsCopyHwState(struct SynapticsHwState *dst, const struct SynapticsHwState *src); extern void SynapticsResetTouchHwState(struct SynapticsHwState *hw); +extern Bool SynapticsIsSoftButtonAreasValid(int *values); + #endif /* _SYNPROTO_H_ */ |