position : Phaser.Point A Phaser.Point object containing
isDown : boolean The "down" state of the key. This will remain true for as long as the keyboard thinks this key is
new Mouse(game) The Mouse class is responsible for handling all aspects of mouse interaction with the browser. It captures and
isDown(keycode) → {boolean} Returns true of the key is currently pressed down. Note that it can
x : number The horizontal coordinate of the Pointer. This value is automatically scaled based on the game scale.
onDown : Phaser.Signal This Signal is dispatched every
[readonly] type : number The const type of this object.
leave(event) Called when the Pointer leaves the target area. Parameters
resetMovement() Resets the movementX and movementY properties. Use in your update handler after retrieving the values.
stopOnGameOut : boolean If true Pointer.stop will be called if the mouse leaves the game canvas.
Page 10 of 29