mouseDown method

bool mouseDown(
  1. MouseButton button
)

Checks if the specified mouse button is currently held down.

Returns true if the button is down, false otherwise.

Implementation

bool mouseDown(MouseButton button) {
  return _mouseDown[button.index];
}