Fields

y:Float

  • The y touch location.

x:Float

  • The x touch location.

@:native("tap_count")tapCount:Int

  • Number of taps, one for single, two for double-tap, etc.

@:native("screen_y")screenY:Float

  • The screen space y value of a touch.

@:native("screen_x")screenX:Float

  • The screen space x value of a touch.

@:native("screen_dy")screenDy:Float

  • The change in screen space y value of a touch.

@:native("screen_dx")screenDx:Float

  • The change in screen space x value of a touch.

released:Bool

  • True if the finger was released this frame.

pressed:Bool

  • True if the finger was pressed this frame.

id:Int

  • A number identifying the touch input during its duration.

dy:Float

  • The change in y value.

dx:Float

  • The change in x value.

@:native("acc_z")accZ:Float

  • Accelerometer z value (if present).

@:native("acc_y")accY:Float

  • Accelerometer y value (if present).

@:native("acc_x")accX:Float

  • Accelerometer x value (if present).