Skip to content

getSwipeGesture() Usage

Ferdian edited this page Jan 13, 2021 · 1 revision

Description

Get status for four directional swipe gesture

this function check for the entire screen

Values

bool getSwipeGesture(
    Swipe gesture,     // Swipe enum
)

Swipe enum contain:
SwipeRight, SwipeLeft, SwipeUp, SwipeDown

Example:

if (getSwipeGesture(Swipe::SwipeUp) {
    // YOUR CODE HERE
}

Clone this wiki locally