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#movementX

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

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#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#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#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#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#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#isUp

isUp : boolean If the Pointer is not touching the touchscreen, or all mouse or pen buttons are up, isUp is set to true.If you need to check a specific mouse or pen button then use the button properties, i.e. Pointer.rightButton.isUp. Default Value true Source code: input/Pointer.js (Line 263)

Pointer#isMouse

isMouse : boolean If the Pointer is a mouse or pen / stylus this is true, otherwise false. Source code: input/Pointer.js (Line 247)