Skip to content

CursorTarget

Where the cursor’s events go (connect’s options.cursor): by default the page (domCursor()).

size(): object

The game’s viewport in px.

object

width: number

height: number


dispatch(type, x, y, buttons): void

One event at x, y (px); buttons: 1 while OK is held, else 0.

CursorEventType

number

number

number

void