Plugin : Touch wrap

Author:Rex.Rainbow

Download

Properties

Use mouse input

  • Use mouse clicks as single-touch input (useful for testing).
    • Options : ["No","Yes"]

Enable

  • Enable touch detecting.
    • Options : ["No","Yes"]

Actions

Enable

Action:Set enable

  • Set touch enable.
    • Enable ( Combo ) : Enable the touch detecting.
      • Options : ["Off","On"]

Expressions

Orientation & motion

Expression:Alpha

  • The device compass direction, in degrees.

Expression:Beta

  • The device front-to-back tilt, in degrees (front is positive).

Expression:Gamma

  • The device left-to-right tilt, in degrees (right is positive).

Expression:AccelerationXWithG

  • The device X acceleration with gravity, in m/s^2.

Expression:AccelerationYWithG

  • The device Y acceleration with gravity, in m/s^2.

Expression:AccelerationZWithG

  • The device Z acceleration with gravity, in m/s^2.

Expression:AccelerationX

  • The device X acceleration without gravity (if supported), in m/s^2.

Expression:AccelerationY

  • The device Y acceleration without gravity (if supported), in m/s^2.

Expression:AccelerationZ

  • The device Z acceleration without gravity (if supported), in m/s^2.

Touch

Expression:X

  • Get the primary touch X co-ordinate in the layout.

Expression:Y

  • Get the primary touch Y co-ordinate in the layout.

Expression:AbsoluteX

  • Get the primary touch X co-ordinate on the canvas.

Expression:AbsoluteY

  • Get the primary touch Y co-ordinate on the canvas.

Expression:TouchCount

  • Get the number of current touches.

Expression:XAt

  • Get a touch X co-ordinate in the layout from a zero-based index of the touch.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:YAt

  • Get a touch Y co-ordinate in the layout from a zero-based index of the touch.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:AbsoluteXAt

  • Get a touch X co-ordinate on the canvas from a zero-based index of the touch.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:AbsoluteYAt

  • Get a touch Y co-ordinate on the canvas from a zero-based index of the touch.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:SpeedAt

  • Get the speed of a touch, in absolute (screen) pixels per second.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:AngleAt

  • Get the angle of motion of a touch, in degrees.
    • Index ( number ) : Zero-based index of the touch to get.

Expression:TouchIndex

  • Get the index of the current touch.

Expression:TouchID

  • Get the unique ID of the current touch.

Expression:XForID

  • Get a touch X co-ordinate in the layout for a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:YForID

  • Get a touch Y co-ordinate in the layout for a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:AbsoluteXForID

  • Get a touch X co-ordinate on the canvas for a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:AbsoluteYForID

  • Get a touch Y co-ordinate on the canvas for a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:SpeedForID

  • Get the speed of a touch with a specific ID, in absolute (screen) pixels per second.
    • ID ( number ) : ID of the touch to get.

Expression:AngleForID

  • Get the angle of motion of a touch with a specific ID, in degrees.
    • ID ( number ) : ID of the touch to get.

Expression:WidthForID

  • Get the width of a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:HeightForID

  • Get the height of a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Expression:PressureForID

  • Get the pressure (from 0 to 1) of a touch with a specific ID.
    • ID ( number ) : ID of the touch to get.

Conditions

Gestures

Condition:On hold

  • Triggered when a touch held in the same place for a time.

Condition:On tap

  • Triggered when a touch is quickly released from its start location.

Condition:On double-tap

  • Triggered when two taps occur in quick succession.

Condition:On hold over object

  • Triggered when a hold gesture is made over an object.
    • Object ( object ) : Choose the object to check.

Condition:On tap object

  • Triggered when a tap gesture is made on an object.
    • Object ( object ) : Choose the object to check.

Condition:On double-tap object

  • Triggered when a double-tap gesture is made on an object.
    • Object ( object ) : Choose the object to check.

Orientation & motion

Condition:Compare orientation

  • Compare the current orientation (or tilt) of the device.
    • Orientation ( Combo ) : Choose the orientation to compare (alpha = compass direction, beta = front-to-back tilt, gamma = left-to-right tilt).
      • Options : ["Alpha","Beta","Gamma"]
    • Comparison ( cmp ) : How to compare the orientation.
    • Angle ( number ) : The orientation to compare to, in degrees.

Condition:Compare acceleration

  • Compare the acceleration of the device along an axis.
    • Axis ( Combo ) : Choose the axis to compare acceleration for, and whether the measurement should include the force of gravity.
      • Options : ["X (with gravity)","Y (with gravity)","Z (with gravity)","X (without gravity)","Y (without gravity)","Z (without gravity)"]
    • Comparison ( cmp ) : How to compare the acceleration.
    • Acceleration ( number ) : The acceleration to compare to, in m/s^2.

Touch

Condition:On any touch start

  • Triggered when any touch input begins.

Condition:On any touch end

  • Triggered when any touch input ends.

Condition:Is in touch

  • True if any touch is currently in contact with the device.

Condition:On touched object

  • Triggered when an object is touched.
    • Object ( object ) : Choose the object to check for touch.

Condition:Is touching object

  • Test if in a touch and the touch point is over an object.
    • Object ( object ) : Choose the object to check for being touched.

Condition:Compare touch speed

  • Compare the speed of a touch, e.g. to detect a swipe.
    • Touch index ( number ) : The zero-based index of the touch to test the speed for. 0 is the first touch.
    • Comparison ( cmp ) : How to compare the touch speed.
    • Speed ( number ) : Speed to compare to, in absolute pixels per second.

Condition:On Nth touch start

  • Triggered when a particular touch input begins.
    • Touch number ( number ) : Enter a zero-based index of the touch to test, e.g. 0 for first touch, 1 for second, etc.

Condition:On Nth touch end

  • Triggered when a particular touch input ends.
    • Touch number ( number ) : Enter a zero-based index of the touch to test, e.g. 0 for first touch, 1 for second, etc.

Condition:Has Nth touch

  • True if a particular touch is currently in contact with the device.
    • Touch number ( number ) : Enter a zero-based index of the touch to test, e.g. 0 for first touch, 1 for second, etc.

Touch released

Condition:On touch released at object

  • Triggered when an object is touch released.
    • Object ( object ) : Choose the object to check for touch released.