tap_gesture_alloc()

Allocate and initialize the tap gesture structure.

Synopsis:

#include "gestures/types.h"
 
gesture_tap_t* tap_gesture_alloc(tap_params_t *params, gesture_callback_f callback, struct gestures_set *set)

Arguments:

params
The tap gesture parameters.
callback
The function to invoke when the tap gesture changes state.
set
The gesture set to add this tap gesture to.

Library:

libgestures

Description:

The function tap_gesture_alloc() allocates a new tap gesture data structure and initializes it with the specified parameters and callback function, and adds it to the specified gesture set.

Returns:

An initialized tap gesture.