Static variables

@:value(0)staticmaxTouchPoints:Int = 0

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

Variables

@:value(new FlxFlick())flickManager:FlxFlick = new FlxFlick()

The FlxFlick class responsible for managing flicks.

@:value(true)invertX:Bool = true

Inverts movement checks for the X axis. On by default.

@:value(true)invertY:Bool = true

Inverts movement checks for the Y axis. On by default.

list:Array<FlxTouch>

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

@:value(FlxPoint.get(100, 100))swipeThreshold:FlxPoint = FlxPoint.get(100, 100)

The threshold to surpass for a movement check to be returned as true.

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

reset():Void

Resets all touches to inactive state.