View source
class FlxTouch
package flixel.input.touch
extends FlxPointer
implements IFlxInput, IFlxDestroyable
Helper class, contains and tracks touch points in your game. Automatically accounts for parallax scrolling, etc.
Variables
read onlypressure:Float
A value between 0.0 and 1.0 indicating force of the contact with the device. If the device does not support detecting the pressure, the value is 1.0.
read onlytouchPointID:Int
The unique ID of this touch. You should not make not any further assumptions about this value - IDs are not guaranteed to start from 0 or ascend in order. The behavior may vary from device to device.