gesture_timer_set_event()

Set a gesture timer from a touch event timestamp

Synopsis:

#include <gestures/timer.h>
int gesture_timer_set_event(struct gesture_base *gesture,
                            int timer_id,
                            unsigned ms,
                            struct mtouch_event *base_event)

Arguments:

gesture
A pointer to the gesture.
timer_id
The timer to set.
ms
The expiry time in milliseconds.
base_event
A pointer to the touch event whose timestamp is to be used as the base time.

Library:

libgestures

Description:

This function sets a timer using a touch event timestamp as the reference time.

Returns:

0 on success, or -1 on failure.