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. Allowed data types: char
.
-
MOUSE_LEFT (default)
-
MOUSE_RIGHT
-
MOUSE_MIDDLE
Returns
Reports whether a button is pressed or not. Data type: bool
.