double_tap_gesture_alloc()

Updated: April 19, 2023

Allocate and initialize the double tap gesture structure

Synopsis:

#include <gestures/double_tap.h>
gesture_double_tap_t* double_tap_gesture_alloc(double_tap_params_t *params,
                                               gesture_callback_f callback,
                                               struct gestures_set *set)

Arguments:

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

Library:

libgestures

Description:

This function allocates a new double tap gesture data structure, initializes it with the specified parameters and callback function, and adds it to the specified gesture set.

Returns:

An initialized double tap gesture.