diff options
Diffstat (limited to 'include/mtouch.h')
| -rw-r--r-- | include/mtouch.h | 11 |
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 | ||
| 31 | struct MTouch { | 28 | struct 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); | |||
| 41 | int open_mtouch(struct MTouch *mt, int fd); | 38 | int open_mtouch(struct MTouch *mt, int fd); |
| 42 | int close_mtouch(struct MTouch *mt, int fd); | 39 | int close_mtouch(struct MTouch *mt, int fd); |
| 43 | 40 | ||
| 44 | int read_synchronized_event(struct MTouch *mt, int fd); | 41 | int parse_event(struct MTouch *mt, const struct input_event *ev); |
| 45 | void parse_event(struct MTouch *mt); | ||
| 46 | |||
| 47 | 42 | ||
| 48 | static inline void mt_delay_movement(struct MTouch *mt, int t) | 43 | static inline void mt_delay_movement(struct MTouch *mt, int t) |
| 49 | { | 44 | { |
