Static variables

@:value(0)staticmaxTouchPoints:Int = 0

The maximum number of concurrent touch points supported by the current device.

Variables

list:Array<FlxTouch>

All active touches including just created, moving and just released.

Methods

inlinegetByID(TouchPointID:Int):FlxTouch

WARNING: can be null if no active touch with the provided ID could be found

getFirst():FlxTouch

Return the first touch if there is one, beware of null

justReleased(?TouchArray:Array<FlxTouch>):Array<FlxTouch>

Gets all touches which were just ended

Parameters:

TouchArray

Optional array to fill with touch objects

Returns:

Array with touches

justStarted(?TouchArray:Array<FlxTouch>):Array<FlxTouch>

Gets all touches which were just started

Parameters:

TouchArray

Optional array to fill with touch objects

Returns:

Array with touches

@:has_untypedreset():Void

Resets all touches to inactive state.