diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 18:48:53 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 18:54:52 +0200 |
| commit | 21a363a2486a713434e890fc1f6b86a180755230 (patch) | |
| tree | ca788ccf7c8269c5cbd41350463fa478aa499903 /include/gestures.h | |
| parent | 523d193b089111849873d9de0ec1bf29f4176fbc (diff) | |
Add tapping logic
This patch adds tap-to-click, tap-and-hold for dragging, two-finger
and three-finger taps. Turned on by default for touch screens only;
switch on in gestures.c.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/gestures.h')
| -rw-r--r-- | include/gestures.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gestures.h b/include/gestures.h index 1d70a25..6bc92cd 100644 --- a/include/gestures.h +++ b/include/gestures.h | |||
| @@ -32,13 +32,17 @@ | |||
| 32 | #define GS_HSWIPE 5 | 32 | #define GS_HSWIPE 5 |
| 33 | #define GS_SCALE 6 | 33 | #define GS_SCALE 6 |
| 34 | #define GS_ROTATE 7 | 34 | #define GS_ROTATE 7 |
| 35 | #define GS_TAP 8 | ||
| 35 | 36 | ||
| 36 | struct Gestures { | 37 | struct Gestures { |
| 37 | bitmask_t type, btmask, btdata; | 38 | bitmask_t type, btmask, btdata; |
| 38 | int same_fingers, dx, dy, scale, rot; | 39 | int same_fingers, dx, dy, scale, rot; |
| 40 | bitmask_t tapmask; | ||
| 41 | int ntap; | ||
| 39 | }; | 42 | }; |
| 40 | 43 | ||
| 41 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); | 44 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); |
| 45 | void extract_delayed_gestures(struct Gestures *gs, struct MTouch* mt); | ||
| 42 | void output_gesture(const struct Gestures *gs); | 46 | void output_gesture(const struct Gestures *gs); |
| 43 | 47 | ||
| 44 | #endif | 48 | #endif |
