Touch#start()

start() Starts the event listeners running. Source code: input/Touch.js (Line 132)

Touch#removeTouchLockCallback()

removeTouchLockCallback(callback, context) → {boolean} Removes the callback at the defined index from the Phaser.Touch.touchLockCallbacks array Parameters Name Type Description callback function The callback to be removed. context object The context in which the callback exists. Returns boolean - True if the callback was deleted, otherwise false. Source code: input/Touch.js (Line 222)

Touch#preventDefault

preventDefault : boolean If true the TouchEvent will have prevent.default called on it. Default Value true Source code: input/Touch.js (Line 78)

Touch#onTouchStart()

onTouchStart(event) The internal method that handles the touchstart event from the browser. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 247)

Touch#onTouchMove()

onTouchMove(event) The handler for the touchmove events. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 376)

Touch#onTouchLeave()

onTouchLeave(event) For touch enter and leave its a list of the touch points that have entered or left the target.Doesn't appear to be supported by most browsers on a canvas element yet. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 354)

Touch#onTouchEnter()

onTouchEnter(event) For touch enter and leave its a list of the touch points that have entered or left the target.Doesn't appear to be supported by most browsers on a canvas element yet. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 327)

Touch#onTouchEnd()

onTouchEnd(event) The handler for the touchend events. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 402)

Touch#onTouchCancel()

onTouchCancel(event) Touch cancel - touches that were disrupted (perhaps by moving into a plugin or browser chrome).Occurs for example on iOS when you put down 4 fingers and the app selector UI appears. Parameters Name Type Description event TouchEvent The native event from the browser. This gets stored in Touch.event. Source code: input/Touch.js (Line 293)

Touch#game

game : Phaser.Game A reference to the currently running game. Source code: input/Touch.js (Line 21)