Skip to main content

Module kind

Module kind 

Source

Constantsยง

BUTTON_DOWN
code: 0 left, 1 middle, 2 right, 3 back, 4 forward (DOM button numbering).
BUTTON_UP
CURSOR
Cursor position in physical pixels (x, y).
FOCUS
KEY_DOWN
KEY_UP
MOUSE_MOVE
Raw relative motion in (x, y); delivered whether or not the pointer is locked.
POINTER_LOCK
RESIZE
New surface size (x, y) in pixels.
TEXT
code is a Unicode scalar value typed by the user.
WHEEL
Scroll in lines (x, y); positive y = away from the user (DOM deltaY sign inverted).