Adds new Pointer objects to the Input Manager.
By default Phaser creates 2 pointer objects: mousePointer
and pointer1
.
You can create more either by calling this method, or by setting the input.activePointers
property
in the Game Config, up to a maximum of 10 pointers.
The first 10 pointers are available via the InputPlugin.pointerX
properties, once they have been added
via this method.
name | type | arguments | Default | description |
---|---|---|---|---|
quantity | number | <optional> | 1 |
The number of new Pointers to create. A maximum of 10 is allowed in total. |
An array containing all of the new Pointer objects that were created.