blob: c56e5a397d63e846fe31e14910b6a4e97ec092ae (
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;
};
////////////////////////////////////////////////////////
int configure_mtouch(struct MTouch *mt, int fd);
int open_mtouch(struct MTouch *mt, int fd);
int close_mtouch(struct MTouch *mt, int fd);
bool read_synchronized_event(struct MTouch *mt, int fd);
void parse_event(struct MTouch *mt);
////////////////////////////////////////////////////////
#endif
|