diff options
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -31,6 +31,11 @@ | |||
| 31 | #include "evbuf.h" | 31 | #include "evbuf.h" |
| 32 | #include "match.h" | 32 | #include "match.h" |
| 33 | 33 | ||
| 34 | #ifndef input_event_sec | ||
| 35 | #define input_event_sec time.tv_sec | ||
| 36 | #define input_event_usec time.tv_usec | ||
| 37 | #endif | ||
| 38 | |||
| 34 | static inline int istouch(const struct mtdev_slot *data, | 39 | static inline int istouch(const struct mtdev_slot *data, |
| 35 | const struct mtdev *dev) | 40 | const struct mtdev *dev) |
| 36 | { | 41 | { |
| @@ -251,7 +256,8 @@ static void push_slot_changes(struct mtdev_state *state, | |||
| 251 | count++; | 256 | count++; |
| 252 | if (!count) | 257 | if (!count) |
| 253 | return; | 258 | return; |
| 254 | ev.time = syn->time; | 259 | ev.input_event_sec = syn->input_event_sec; |
| 260 | ev.input_event_usec = syn->input_event_usec; | ||
| 255 | ev.type = EV_ABS; | 261 | ev.type = EV_ABS; |
| 256 | ev.code = ABS_MT_SLOT; | 262 | ev.code = ABS_MT_SLOT; |
| 257 | ev.value = slot; | 263 | ev.value = slot; |
