diff options
Diffstat (limited to 'src/gestures.h')
| -rw-r--r-- | src/gestures.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gestures.h b/src/gestures.h new file mode 100644 index 0000000..18ac920 --- /dev/null +++ b/src/gestures.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #ifndef GESTURES_H | ||
| 2 | #define GESTURES_H | ||
| 3 | |||
| 4 | #include "mtouch.h" | ||
| 5 | |||
| 6 | //////////////////////////////////////////////////////// | ||
| 7 | |||
| 8 | #define GS_MOVE 0 | ||
| 9 | #define GS_BUTTON 1 | ||
| 10 | |||
| 11 | //////////////////////////////////////////////////////// | ||
| 12 | |||
| 13 | struct Gestures { | ||
| 14 | unsigned type; | ||
| 15 | int dx, dy; | ||
| 16 | int nbt, btix[DIM_BUTTON], btval[DIM_BUTTON]; | ||
| 17 | }; | ||
| 18 | |||
| 19 | //////////////////////////////////////////////////////// | ||
| 20 | |||
| 21 | void extract_gestures(struct Gestures *gs, struct MTouch* mt); | ||
| 22 | |||
| 23 | //////////////////////////////////////////////////////// | ||
| 24 | |||
| 25 | #endif | ||
