diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-05-13 23:21:37 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:41:39 +0200 |
| commit | a2ef8bcda6cd3864b4c367579defb52ecad19657 (patch) | |
| tree | 902391874bd1982f99854c33728abdee77913004 /src/gestures.h | |
| parent | 32dea71a85ac1b46c35bf85f456f3c4772b30e76 (diff) | |
Add scale gesture
Moving two fingers apart or closer together will trigger the gesture.
This patch computes the scaling gesture and maps it to mouse buttons
12 and 13.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/gestures.h')
| -rw-r--r-- | src/gestures.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gestures.h b/src/gestures.h index 5630d4c..5739d45 100644 --- a/src/gestures.h +++ b/src/gestures.h | |||
| @@ -30,10 +30,11 @@ | |||
| 30 | #define GS_HSCROLL 3 | 30 | #define GS_HSCROLL 3 |
| 31 | #define GS_VSWIPE 4 | 31 | #define GS_VSWIPE 4 |
| 32 | #define GS_HSWIPE 5 | 32 | #define GS_HSWIPE 5 |
| 33 | #define GS_SCALE 6 | ||
| 33 | 34 | ||
| 34 | struct Gestures { | 35 | struct Gestures { |
| 35 | unsigned type, btmask, btdata; | 36 | unsigned type, btmask, btdata; |
| 36 | int same_fingers, dx, dy; | 37 | int same_fingers, dx, dy, scale; |
| 37 | }; | 38 | }; |
| 38 | 39 | ||
| 39 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); | 40 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); |
