mouse
description
object containing data about the mouse.
properties
x : number
 the value returned by MouseEvent.pageX.
y : number
 the value returned by MouseEvent.pageY.
click : boolean
 changes to true when a left click is detected.
the click property does not reset on its own. it should be manually set to false at the end of your game loop; each click detected will then cause it to return true for exactly one frame.
held : boolean
 returns true as long as the left mouse button is held down.