This function clears the current state of the given mouse button. This means that checks for it being held down will not return true until the player releases the button and presses it again.
NOTE This function only clears the state of the mouse button. The release will still be detected when the button is released on the mouse.
You can supply one of the mouse button constants listed on the Mouse Input page.
mouse_clear(button);
Argument | Type | Description |
---|---|---|
button | Mouse Button Constant | Which mouse button constant to check for. |
mouse_clear(mb_any);
The above code will clear the down state of all the mouse buttons.