Pointer#justPressed()

justPressed(duration) → {boolean} The Pointer is considered justPressed if the time it was pressed onto the touchscreen or clicked is less than justPressedRate.Note that calling justPressed doesn't reset the pressed status of the Pointer, it will return true for as long as the duration is valid.If you wish to check if the Pointer was pressed down just once then see the Sprite.events.onInputDown event. Parameters Name Type Argument Description duration number <optional> The time to c

Pointer#justReleased()

justReleased(duration) → {boolean} The Pointer is considered justReleased if the time it left the touchscreen is less than justReleasedRate.Note that calling justReleased doesn't reset the pressed status of the Pointer, it will return true for as long as the duration is valid.If you wish to check if the Pointer was released just once then see the Sprite.events.onInputUp event. Parameters Name Type Argument Description duration number <optional> The time to check against. If none giv

Pointer#leave()

leave(event) Called when the Pointer leaves the target area. Parameters Name Type Description event MouseEvent | PointerEvent | TouchEvent The event passed up from the input handler. Source code: input/Pointer.js (Line 945)

Pointer#leftButton

leftButton : Phaser.DeviceButton If this Pointer is a Mouse or Pen / Stylus then you can access its left button directly through this property. The DeviceButton has its own properties such as isDown, duration and methods like justReleased for more fine-grainedbutton control. Source code: input/Pointer.js (Line 81)

Pointer#middleButton

middleButton : Phaser.DeviceButton If this Pointer is a Mouse or Pen / Stylus then you can access its middle button directly through this property. The DeviceButton has its own properties such as isDown, duration and methods like justReleased for more fine-grainedbutton control. Please see the DeviceButton docs for details on browser button limitations. Source code: input/Pointer.js (Line 94)

Pointer#move()

move(event, fromClick) Called when the Pointer is moved. Parameters Name Type Argument Default Description event MouseEvent | PointerEvent | TouchEvent The event passed up from the input handler. fromClick boolean <optional> false Was this called from the click event? Source code: input/Pointer.js (Line 709)

Pointer#movementX

movementX : number The horizontal processed relative movement of the Pointer in pixels since last event. Source code: input/Pointer.js (Line 224)

Pointer#movementY

movementY : number The vertical processed relative movement of the Pointer in pixels since last event. Source code: input/Pointer.js (Line 230)

Pointer#msSinceLastClick

msSinceLastClick : number The number of milliseconds since the last click or touch event. Source code: input/Pointer.js (Line 293)

Pointer#pageX

pageX : number The horizontal coordinate of the Pointer relative to whole document. Source code: input/Pointer.js (Line 191)