Help support the future of Phaser via Patreon, or making a one-off donation.

These docs are for an outdated version of Phaser
The documentation on this page is for Phaser 2.5.0. The latest release is 2.6.2.

Phaser 2.5.0

"Via": If a class has an entry in the via column it means you can quickly access it through a local reference.
I.e. you can control the camera via this.camera from any state, or game.camera if game has been globally defined.

Input

Pointers encapsulate all mouse or touch related input, regardless of how it was generated.
On multi-touch systems more than one Pointer can be active at any one time.
In Input related events a reference to the corresponding Pointer is passed.