mouse_clear

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.

 

Syntax:

mouse_clear(button);

ArgumentTypeDescription
buttonMouse Button ConstantWhich mouse button constant to check for.

 

Returns:

Boolean

 

Example:

mouse_clear(mb_any);

The above code will clear the down state of all the mouse buttons.