mouse_clear

This will clear the state of the currently pressed mouse buttons.

Syntax:

mouse_clear(button);


Argument Description
button Which mouse button constant to check for.


Returns: Boolean


Description

This function will clear the state of any mouse buttons currently being used. This means that checks for their being held down/released will not return true until the player releases the buttons and represses them.


Example:

mouse_clear(mb_any);

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


Back: Mouse Input
Next: mouse_last_button
© Copyright YoYo Games Ltd. 2018 All Rights Reserved