Set a gesture timer from a touch event timestamp.
#include "gestures/timer.h"
int gesture_timer_set_event(struct gesture_base *gesture, int timer_id, unsigned ms, struct mtouch_event *base_event)
A pointer to the gesture.
The timer to set.
The expiry time in milliseconds.
A pointer to the touch event whose timestamp is to be used as the base time.
This function sets a timer using a touch event timestamp as the reference time.
0 on success, or -1 on failure.