Calculate the maximum displacement between two gesture events.
#include <sys/queue.h> #include "input/event_types.h" #include "gestures/bucket.h"
uint32_t max_displacement_abs(gesture_coords_t *coords1, gesture_coords_t *coords2)
This function returns the the maximum displacement, in pixels, between two gesture events. For example, if the absolute value of the difference between the x coordinates of the two gestures is greater than the absolute value of the difference between the y coordinates, the former is returned by the function. You will likely need this function only if you are defining your own gestures.
The maximum displacement, in pixels.