diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-09 04:20:53 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-09 04:20:53 +0100 |
| commit | b8f7fdfe1b8974a6677e73cfe7c83da70a35f4ae (patch) | |
| tree | 544cbe58102898d9eab3c80fc5be1414670810bf /src/gestures.h | |
| parent | 7952ef288f490045a4ab19b510be32512f217324 (diff) | |
Gesture interface in place
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
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 | ||
