This function will clear the current state of any mouse buttons being used. This means that checks for their being held down will not return true until the player releases the buttons and represses them (but the release state will still be detected if the clear is done while the mouse button is being held down). You supply the mouse button to check from one of the following constants:
| Constant | Description |
|---|---|
| mb_left | The left mouse button |
| mb_middle | The middle mouse button (this may not be valid for all target platforms) |
| mb_right | The right mouse button |
| mb_none | No mouse button |
| mb_any | Any of the mouse buttons |
mouse_clear(button);
| Argument | Description |
|---|---|
| button | Which mouse button constant to check for. |
Boolean
mouse_clear(mb_any);
The above code will clear the down state of all the mouse buttons.