arcade2d
Interface

MouseButtons

input/mouse.types.ts:10

Held-state booleans for the three standard mouse buttons, exposed as a named bag on MouseSnapshot (and MouseState) so they're a) addressable as a group (if (state.buttons.left)) and b) easy to extend with extra buttons (back, forward) without flattening the top-level shape further.

Properties

readonly #
left: boolean

true while the primary (left) mouse button is held.

readonly #
middle: boolean

true while the middle (wheel) mouse button is held.

ESC