aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtouch.h
blob: a131b40da49887208e1c08ff3fe553d523a869c0 (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
28
29
#ifndef MTOUCH_H
#define MTOUCH_H

#include "capabilities.h"
#include "iobuffer.h"
#include "hwdata.h"
#include "state.h"

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

struct MTouch {
	struct Capabilities caps;
	struct IOBuffer buf;
	struct HWData hw;
	struct State os, ns;
	bool grabbed;
};

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

int configure_mtouch(struct MTouch *mt, int fd);
int open_mtouch(struct MTouch *mt, int fd);
void close_mtouch(struct MTouch *mt, int fd);

bool read_synchronized_event(struct MTouch *mt, int fd);

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

#endif