blob: 18ac920e8e48f1814749b3bd4ccd08b7b7bb969f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef GESTURES_H
#define GESTURES_H
#include "mtouch.h"
////////////////////////////////////////////////////////
#define GS_MOVE 0
#define GS_BUTTON 1
////////////////////////////////////////////////////////
struct Gestures {
unsigned type;
int dx, dy;
int nbt, btix[DIM_BUTTON], btval[DIM_BUTTON];
};
////////////////////////////////////////////////////////
void extract_gestures(struct Gestures *gs, struct MTouch* mt);
////////////////////////////////////////////////////////
#endif
|