ClassInput & Controls@public
FlxTouch
State of one browser touch pointer.
ts
export declare class FlxTouch extends FlxPointConstructors
ts
constructor(context: FlxContext, pointerId: number)Constructs a new instance of the FlxTouch class
| Parameter | Type | Description |
|---|---|---|
context | FlxContext | - |
pointerId | number | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
age | - | number | - |
cancelled | - | boolean | - |
isPrimary | - | boolean | - |
justCancelled | readonly | boolean | - |
justPressed | readonly | boolean | - |
justReleased | readonly | boolean | - |
pointerId | readonly | number | - |
pressed | readonly | boolean | - |
pressure | - | number | - |
startX | - | number | - |
startY | - | number | - |
Methods
getWorldPosition()
ts
getWorldPosition(camera?: FlxCamera, point?: FlxPoint): FlxPointParameters:
| Parameter | Type | Description |
|---|---|---|
camera | FlxCamera | - |
point | FlxPoint | - |
Returns: FlxPoint