Indicates whether the mouse button provided was and then throughout the frame.
public static bool isMousePressedAndHeld(
int
)
Parameters
- button
An integer indicating the Mouse Button to check for. Accepts:
- 0 for the left-hand mouse button.
- 1 for the right-hand mouse button.
- 2 for the center mouse button (not all mice have this).
Return Value
true if the button was and , false if not.