This function will return true if the mouse button being checked has been pressed or false if it has not. This function will only be triggered once for any mouse button when it is first pressed and to trigger it again the button will need to have been released and pressed again. 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 numb Which mouse button constant to check for.
score += 50;
The above code will check to see if the left mouse button has been pressed and if it has it will add 50 to the score.