diff options
Diffstat (limited to 'src/mtouch.h')
| -rw-r--r-- | src/mtouch.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mtouch.h b/src/mtouch.h index 4004b4d..aab35bd 100644 --- a/src/mtouch.h +++ b/src/mtouch.h | |||
| @@ -45,4 +45,15 @@ int close_mtouch(struct MTouch *mt, int fd); | |||
| 45 | int read_synchronized_event(struct MTouch *mt, int fd); | 45 | int read_synchronized_event(struct MTouch *mt, int fd); |
| 46 | void parse_event(struct MTouch *mt); | 46 | void parse_event(struct MTouch *mt); |
| 47 | 47 | ||
| 48 | |||
| 49 | static inline void mt_delay_movement(struct MTouch *mt, int t) | ||
| 50 | { | ||
| 51 | mem_hold_movement(&mt->mem, mt->state.evtime + t); | ||
| 52 | } | ||
| 53 | |||
| 54 | static inline void mt_skip_movement(struct MTouch *mt, int t) | ||
| 55 | { | ||
| 56 | mem_forget_movement(&mt->mem, mt->state.evtime + t); | ||
| 57 | } | ||
| 58 | |||
| 48 | #endif | 59 | #endif |
