Screen gesture types

Updated: April 19, 2023

Types of gestures

Synopsis:

#include <screen/screen.h>
enum {
    SCREEN_GESTURE_TAP = 0x2C,
    SCREEN_GESTURE_ZOOM_OUT = 0x2D,
    SCREEN_GESTURE_ZOOM_IN = 0x2E,
    SCREEN_GESTURE_SWIPE_RIGHT = 0x4F,
    SCREEN_GESTURE_SWIPE_LEFT = 0x50,
    SCREEN_GESTURE_SWIPE_DOWN = 0x51,
    SCREEN_GESTURE_SWIPE_UP = 0x52,
    SCREEN_GESTURE_HOLD = 0xE1
};

Data:

SCREEN_GESTURE_TAP
A gesture comprised of one touch with one point of contact.
SCREEN_GESTURE_ZOOM_OUT
A gesture that's one continuous motion, comprised of a two-contact tap, a movement inward, and a release.
SCREEN_GESTURE_ZOOM_IN
A gesture that's one continuous motion, comprised of a two-contact tap, a movement outward, and a release.
SCREEN_GESTURE_SWIPE_RIGHT
A gesture that's one continuous horizontal motion, comprised of a tap, a movement towards the right, and a release, all with one contact.
SCREEN_GESTURE_SWIPE_LEFT
A gesture that's one continuous horizontal motion, comprised of a tap, a movement towards the left, and a release, all with one contact.
SCREEN_GESTURE_SWIPE_DOWN
A gesture that's one continuous vertical motion, comprised of a tap, a movement downwards, and a release, all with one contact.
SCREEN_GESTURE_SWIPE_UP
A gesture that's one continuous vertical motion, comprised of a tap, a movement upwards, all with one contact.
SCREEN_GESTURE_HOLD
A gesture that's one touch with a pause before releasing.

Library:

libscreen