summaryrefslogtreecommitdiff
path: root/include/mtouch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mtouch.h')
-rw-r--r--include/mtouch.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/mtouch.h b/include/mtouch.h
index a495960..2b76652 100644
--- a/include/mtouch.h
+++ b/include/mtouch.h
@@ -22,16 +22,13 @@
22#ifndef MTOUCH_H 22#ifndef MTOUCH_H
23#define MTOUCH_H 23#define MTOUCH_H
24 24
25#include "mtdev-iobuf.h"
26#include "hwdata.h"
27#include "hwstate.h"
28#include "mtstate.h"
29#include "memory.h" 25#include "memory.h"
26#include "mtdev-iobuf.h"
30 27
31struct MTouch { 28struct MTouch {
32 struct Capabilities caps; 29 struct Capabilities caps;
30 struct MTDev dev;
33 struct IOBuffer buf; 31 struct IOBuffer buf;
34 struct HWData hw;
35 struct HWState hs; 32 struct HWState hs;
36 struct MTState prev_state, state; 33 struct MTState prev_state, state;
37 struct Memory mem; 34 struct Memory mem;
@@ -41,9 +38,7 @@ int configure_mtouch(struct MTouch *mt, int fd);
41int open_mtouch(struct MTouch *mt, int fd); 38int open_mtouch(struct MTouch *mt, int fd);
42int close_mtouch(struct MTouch *mt, int fd); 39int close_mtouch(struct MTouch *mt, int fd);
43 40
44int read_synchronized_event(struct MTouch *mt, int fd); 41int parse_event(struct MTouch *mt, const struct input_event *ev);
45void parse_event(struct MTouch *mt);
46
47 42
48static inline void mt_delay_movement(struct MTouch *mt, int t) 43static inline void mt_delay_movement(struct MTouch *mt, int t)
49{ 44{