getPointerFromId(pointerId) → {Phaser.Pointer}
Get the Pointer object whos pointerId
property matches the given value.
The pointerId property is not set until the Pointer has been used at least once, as its populated by the DOM event.
Also it can change every time you press the pointer down if the browser recycles it.
Parameters
Name | Type | Description |
---|---|---|
pointerId | number | The |
Returns
A Pointer object or null if no Pointer object matches the requested identifier.
- Source code: input/Input.js (Line 876)
Please login to continue.