Pointer#resetMovement()
  • References/Game Development/Phaser/Input/Pointer

resetMovement() Resets the movementX and movementY properties. Use in your update handler after retrieving the values.

2025-01-10 15:47:30
Pointer#y
  • References/Game Development/Phaser/Input/Pointer

y : number The vertical coordinate of the Pointer. This value is automatically scaled based on the game scale.

2025-01-10 15:47:30
Pointer#game
  • References/Game Development/Phaser/Input/Pointer

game : Phaser.Game A reference to the currently running game

2025-01-10 15:47:30
Pointer#rawMovementX
  • References/Game Development/Phaser/Input/Pointer

rawMovementX : number The horizontal raw relative movement of the Pointer in pixels since last event.

2025-01-10 15:47:30
Pointer#isUp
  • References/Game Development/Phaser/Input/Pointer

isUp : boolean If the Pointer is not touching the touchscreen, or all mouse or pen buttons are up, isUp is set to true

2025-01-10 15:47:30
Pointer.FORWARD_BUTTON
  • References/Game Development/Phaser/Input/Pointer

[static] FORWARD_BUTTON : number The X2 button. This is typically the mouse Forward button

2025-01-10 15:47:30
Pointer.ERASER_BUTTON
  • References/Game Development/Phaser/Input/Pointer

[static] ERASER_BUTTON : number The Eraser pen button on PointerEvent supported devices only

2025-01-10 15:47:30
Pointer#isMouse
  • References/Game Development/Phaser/Input/Pointer

isMouse : boolean If the Pointer is a mouse or pen / stylus this is true, otherwise false.

2025-01-10 15:47:30
Pointer.LEFT_BUTTON
  • References/Game Development/Phaser/Input/Pointer

[static] LEFT_BUTTON : number The Left Mouse button, or in PointerEvent devices a Touch contact

2025-01-10 15:47:30
Pointer#worldY
  • References/Game Development/Phaser/Input/Pointer

[readonly] worldY : number Gets the Y value of this Pointer in world coordinates based on

2025-01-10 15:47:30