Behavior : Touch area
Author:Rex.Rainbow
- Get touch by tracking touchID.
Download
Properties
Activated
- Enable if you wish this to begin at the start of the layout.
Actions
Enable
Action:Set enabled
- Enable or disable the drag and drop behavior.
- State ( Combo ) : Choose whether to enable or disable the behavior.
- Options : ["Disabled","Enabled"]
Expressions
Current
Expression:X
- Get the touch X co-ordinate in this object. Return -1 if not in touch this object.
Expression:Y
- Get the touch Y co-ordinate in this object. Return -1 if not in touch this object.
Delta
Expression:DeltaX
- Get dragged delta X position by current X - previous X.
Expression:DeltaY
- Get dragged delta Y position by current Y - previous y.
Polar
Expression:Distance
- Get the drag-distance from start point to current point. Return -1 if not in touch this object.
Expression:Angle
- Get the drag-angle from start point to current point in degree. Return -1 if not in touch this object.
Expression:VectorX
- Get the dragged unit vector X.
Expression:VectorY
- Get the dragged unit vector Y.
Start
Expression:StartX
- Get the touch start X co-ordinate in this object. Return -1 if not in touch this object.
Expression:StartY
- Get the touch start Y co-ordinate in this object. Return -1 if not in touch this object.
Conditions
Touch
Condition:On touch start
- Triggered when touch input begins.
Condition:On touch end
- Triggered when touch input ends.
Condition:Is in touch
- True if touch is currently in contact with this object.
Touch moving
Condition:On touch moving
- Triggered when touch and moving.
Value
Condition:Compare dragging distance
- Compare the drag-distance.
- Comparison ( cmp ) : Choose the way to compare drag-distance.
- Value ( number ) : The value to compare drag-distance to.
Condition:Compare dragging angle
- Compare the drag-angle.
- Comparison ( cmp ) : Choose the way to compare drag-angle.
- Value ( number ) : The value to compare drag-angle to.