Pointer#swapTarget()

swapTarget(newTarget, silent) This will change the Pointer.targetObject object to be the one provided. This allows you to have fine-grained control over which object the Pointer is targeting. Note that even if you set a new Target here, it is still able to be replaced by any other validtarget during the next Pointer update. Parameters Name Type Argument Default Description newTarget Phaser.InputHandler The new target for this Pointer. Note this is an InputHandler, so don't pass a Sprit

Pointer#stop()

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

Pointer#start()

start(event) Called when the Pointer is pressed onto the touchscreen. Parameters Name Type Description event any The DOM event from the browser. Source code: input/Pointer.js (Line 587)

Pointer#screenY

screenY : number The vertical coordinate of the Pointer relative to the screen. Source code: input/Pointer.js (Line 206)

Pointer#screenX

screenX : number The horizontal coordinate of the Pointer relative to the screen. Source code: input/Pointer.js (Line 201)

Pointer#rightButton

rightButton : Phaser.DeviceButton If this Pointer is a Mouse or Pen / Stylus then you can access its right 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 107)

Pointer#resetMovement()

resetMovement() Resets the movementX and movementY properties. Use in your update handler after retrieving the values. Source code: input/Pointer.js (Line 1177)

Pointer#reset()

reset() Resets the Pointer properties. Called by InputManager.reset when you perform a State change. Source code: input/Pointer.js (Line 1147)

Pointer#rawMovementY

rawMovementY : number The vertical raw relative movement of the Pointer in pixels since last event. Source code: input/Pointer.js (Line 218)

Pointer#rawMovementX

rawMovementX : number The horizontal raw relative movement of the Pointer in pixels since last event. Source code: input/Pointer.js (Line 212)