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/hwdata.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/hwdata.h')
| -rw-r--r-- | src/hwdata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hwdata.h b/src/hwdata.h index 867a295..42d0a19 100644 --- a/src/hwdata.h +++ b/src/hwdata.h | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | #include "common.h" | 25 | #include "common.h" |
| 26 | 26 | ||
| 27 | #define DIM_BUTTON 13 | 27 | #define DIM_BUTTON 15 |
| 28 | 28 | ||
| 29 | #define MT_BUTTON_LEFT 0 | 29 | #define MT_BUTTON_LEFT 0 |
| 30 | #define MT_BUTTON_MIDDLE 1 | 30 | #define MT_BUTTON_MIDDLE 1 |
| @@ -39,6 +39,8 @@ | |||
| 39 | #define MT_BUTTON_SWIPE_RIGHT 10 | 39 | #define MT_BUTTON_SWIPE_RIGHT 10 |
| 40 | #define MT_BUTTON_SCALE_DOWN 11 | 40 | #define MT_BUTTON_SCALE_DOWN 11 |
| 41 | #define MT_BUTTON_SCALE_UP 12 | 41 | #define MT_BUTTON_SCALE_UP 12 |
| 42 | #define MT_BUTTON_ROTATE_LEFT 13 | ||
| 43 | #define MT_BUTTON_ROTATE_RIGHT 14 | ||
| 42 | 44 | ||
| 43 | #define BIT_MT_TOUCH_MAJOR 0 | 45 | #define BIT_MT_TOUCH_MAJOR 0 |
| 44 | #define BIT_MT_TOUCH_MINOR 1 | 46 | #define BIT_MT_TOUCH_MINOR 1 |
