new Mouse(game) The Mouse class is responsible for handling all aspects of mouse interaction with the browser. It captures and
enabled : boolean Touch events will only be processed if enabled. Default
pointerMoveCallback : Function A callback that can be fired on a MSPointerMove event.
destroy() Stops the Keyboard event listeners from running (keydown and keyup). They are removed from the window.Also clears all
game : Phaser.Game A reference to the currently running game
msSinceLastClick : number The number of milliseconds since the last click or touch event.
leave(event) Called when the Pointer leaves the target area. Parameters
onDown : Phaser.Signal This Signal is dispatched every
game : Phaser.Game Local reference to game.
downDuration(duration) → {boolean} Returns true if the
Page 10 of 29