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/hwdata.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/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 5dd99cf..867a295 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 11 | 27 | #define DIM_BUTTON 13 |
| 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 |
| @@ -37,6 +37,8 @@ | |||
| 37 | #define MT_BUTTON_SWIPE_DOWN 8 | 37 | #define MT_BUTTON_SWIPE_DOWN 8 |
| 38 | #define MT_BUTTON_SWIPE_LEFT 9 | 38 | #define MT_BUTTON_SWIPE_LEFT 9 |
| 39 | #define MT_BUTTON_SWIPE_RIGHT 10 | 39 | #define MT_BUTTON_SWIPE_RIGHT 10 |
| 40 | #define MT_BUTTON_SCALE_DOWN 11 | ||
| 41 | #define MT_BUTTON_SCALE_UP 12 | ||
| 40 | 42 | ||
| 41 | #define BIT_MT_TOUCH_MAJOR 0 | 43 | #define BIT_MT_TOUCH_MAJOR 0 |
| 42 | #define BIT_MT_TOUCH_MINOR 1 | 44 | #define BIT_MT_TOUCH_MINOR 1 |
