Input#addPointer()

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.