Phaser API Documentation

transformPointer(pointer, pageX, pageY, wasMove)


Transforms the pageX and pageY values of a Pointer into the scaled coordinate space of the Input Manager.


name type description
pointer Phaser.Input.Pointer

The Pointer to transform the values for.

pageX number

The Page X value.

pageY number

The Page Y value.

wasMove boolean

Are we transforming the Pointer from a move event, or an up / down event?

Since: 3.10.0