Updated: October 28, 2024 |
Allocate and initialize the tap gesture structure
#include <gestures/tap.h>
gesture_tap_t* tap_gesture_alloc(tap_params_t *params, gesture_callback_f callback, struct gestures_set *set)
This function 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.
An initialized tap gesture.