CursorTarget
Where the cursor’s events go (connect’s options.cursor): by default the page (domCursor()).
Methods
Section titled “Methods”size()
Section titled “size()”size():
object
The game’s viewport in px.
Returns
Section titled “Returns”object
width:
number
height
Section titled “height”height:
number
dispatch()
Section titled “dispatch()”dispatch(
type,x,y,buttons):void
One event at x, y (px); buttons: 1 while OK is held, else 0.
Parameters
Section titled “Parameters”number
number
buttons
Section titled “buttons”number
Returns
Section titled “Returns”void