Description
Checks the current status of all mouse buttons, and reports if any are pressed or not.
Syntax
Mouse.isPressed();
Mouse.isPressed(button);
Parameters
When there is no value passed, it checks the status of the left mouse button.
button
: which mouse button to check - char
-
MOUSE_LEFT (default)
-
MOUSE_RIGHT
-
MOUSE_MIDDLE
Returns
bool
: reports whether a button is pressed or not.