Static variables
staticmaxTouchPoints:Int = 0
The maximum number of concurrent touch points supported by the current device.
Variables
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
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