Constantsยง
- BUTTON_
DOWN code: 0 left, 1 middle, 2 right, 3 back, 4 forward (DOMbuttonnumbering).- 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
codeis a Unicode scalar value typed by the user.- WHEEL
- Scroll in lines (x, y); positive y = away from the user (DOM deltaY sign inverted).