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 | 2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb (patch) | |
| tree | 3b6c98868b0d663c24ebfd6706922a6e99c23404 /src/gestures.h | |
| parent | a2ef8bcda6cd3864b4c367579defb52ecad19657 (diff) | |
Add rotation gesturev1.0-alpha3
Moving two fingers around a center point will trigger the gesture.
This patch computes the rotation gesture and maps it to mouse buttons
14 and 15.
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 5739d45..2866ba4 100644 --- a/src/gestures.h +++ b/src/gestures.h | |||
| @@ -31,10 +31,11 @@ | |||
| 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 | #define GS_SCALE 6 |
| 34 | #define GS_ROTATE 7 | ||
| 34 | 35 | ||
| 35 | struct Gestures { | 36 | struct Gestures { |
| 36 | unsigned type, btmask, btdata; | 37 | unsigned type, btmask, btdata; |
| 37 | int same_fingers, dx, dy, scale; | 38 | int same_fingers, dx, dy, scale, rot; |
| 38 | }; | 39 | }; |
| 39 | 40 | ||
| 40 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); | 41 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); |
