gesture_rotate_t

Updated: May 06, 2022

The rotate gesture data type

Synopsis:

#include <gestures/>
typedef struct gesture_rotate_t {
    gesture_base_t base;
    rotate_params_t params;
    gesture_coords_t coords[2];
    gesture_coords_t centroid;
    gesture_coords_t last_centroid;
    int angle;
    int last_angle;
} gesture_rotate_t;

Data:

gesture_base_t base
The gesture base data structure.
rotate_params_t params
The swipe parameters.
gesture_coords_t coords[2]
The coordinates of the touch events for the two fingers.
gesture_coords_t centroid
The coordintes of the midpoint between the two touches.
gesture_coords_t last_centroid
The coordintes of the midpoint between the previous two touches.
int angle
The angle of the current two touches relative to the x axis.
int last_angle
The previous angle.

Library:

libgestures

Description:

This structure carries data about the rotate gesture.