aboutsummaryrefslogtreecommitdiffstats
path: root/src/gestures.h
blob: de029b71f923ac3ff088bddf35887bf275838e59 (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
26
27
#ifndef GESTURES_H
#define GESTURES_H

#include "mtouch.h"

////////////////////////////////////////////////////////

#define GS_BUTTON 0
#define GS_MOVE 1
#define GS_VSCROLL 2
#define GS_HSCROLL 3

////////////////////////////////////////////////////////

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