Class: Touch

Touch

The Touch class enables touch input in Input.


new Touch()

Properties:
Name Type Description
sensitivityX

The horizontal single-finger movement sensitivity

sensitivityY

The vertical single-finger movement sensitivity

sensitivityPinch

The sensitivity for two-finger pinching

Author:
  • derschmale <http://www.derschmale.com>

Members


<static> MOVE_X

The axis name for when the finger moves horizontally over the canvas


<static> MOVE_Y

The axis name for when the finger moves vertically over the canvas


<static> PINCH

The axis name for the pinch gesture on the canvas. Positive means growth, negative means shrinkage.


<static> POS_X

The axis name for the finger position on the canvas. 0 means all the way left, 1 means all the way right.


<static> POS_Y

The axis name for the finger position on the canvas. 0 means all the way to the top, 1 means all the way to the bottom.


<static> TAP

The button name for a "tap". This is 1 as long as the first finger is down.