MOUSECLICK
This command will return an integer value if a mouse button is pressed. The integer return value will depend on which mouse button has been pressed. A mouse can have up to four buttons, and each one can be detected using this command. Each button is assigned a value. The left button is assigned a value of 1. The right button is assigned a value of 2. Buttons three and four are assigned values of 4 and 8 respectively. When more than one button is pressed, the value of the buttons are added to produce a combined value you can check for.

SYNTAX
Return Integer=MOUSECLICK()

RELATED INFO
INPUT Commands Menu
Index

EXAMPLE
View Showcase Example
View Usage Example