Swipe

Inherits

Trigger

Type

Motion trigger (delta based on distance)

Description

Performed by moving the mouse left, right, up ur down.

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 motion is required, use Stroke instead. Swipe triggers are not compatible with stroke triggers, 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).