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. 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
Argument Description button Which mouse button constant to check for.
The above code will clear the down state of all the mouse buttons.