long_press_params_t

Updated: May 06, 2022

Parameters for the long press gesture

Synopsis:

#include <gestures/>
typedef struct long_press_params_t {
    unsigned max_displacement;
    unsigned min_press_time_ms;
} long_press_params_t;

Data:

unsigned max_displacement
The maximum number of pixels from the initial coordinates of the touch before the press fails.
unsigned min_press_time_ms
The minumum time in millisecond for the gesture to be considered a long press and not a tap.

Library:

libgestures

Description:

This structure represents the parameters for the long press gesture.