SwipeGesture

Inherits

Gesture

Supported devices

Mouse, Touchpad

Type

Motion gesture (delta based on distance)

Description

The direction is determined in the first few input events, making it possible to use on: begin and on: update actions.

If complex shapes or diagonal gestures are required, use StrokeGesture instead. Swipe gestures are not compatible with stroke gestures, only one type may be active at a time.

Properties

Property

Type

Description

direction

enum(left, right, up, down, left_right, up_down, any)

any, left_right and up_down allow multiple directions. any will not work well with action intervals, as they only accept a single value, not two (x and y).