addPointer() → {Phaser.Pointer | null}
Add a new Pointer object to the Input Manager.
By default Input creates 3 pointer objects: mousePointer
(not include in part of general pointer pool), pointer1
and pointer2
.
This method adds an additional pointer, up to a maximum of Phaser.Input.MAX_POINTERS (default of 10).
Returns
Phaser.Pointer | null -
The new Pointer object that was created; null if a new pointer could not be added.
- Source code: input/Input.js (Line 549)
Please login to continue.