summaryrefslogtreecommitdiff
path: root/src/mtouch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtouch.h')
-rw-r--r--src/mtouch.h11
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);
45int read_synchronized_event(struct MTouch *mt, int fd); 45int read_synchronized_event(struct MTouch *mt, int fd);
46void parse_event(struct MTouch *mt); 46void parse_event(struct MTouch *mt);
47 47
48
49static inline void mt_delay_movement(struct MTouch *mt, int t)
50{
51 mem_hold_movement(&mt->mem, mt->state.evtime + t);
52}
53
54static 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