Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Touch

type

{Object}

property

{Number} x mouse position x.

property

{Number} y mouse position y.

property

{Number} movement.x mouse movement x from last frame.

property

{Number} movement.y mouse movement y from last frame.

property

{boolean} click is current action is click.

property

{boolean} longClick is current action is longClick.

property

{Number} duration how long does it take to press.

property

{String} actionBeforeMove 'click' or 'long click'

Hierarchy

  • Touch

Index

Properties

actionBeforeMove

actionBeforeMove: string | null = null

click

click: boolean = false

duration

duration: any = null

longClick

longClick: boolean = false

movement

movement: Vector2 = new Vector2(0, 0)

x

x: number = 0

y

y: number = 0

Generated using TypeDoc