MouseButton()

Syntax

Result = MouseButton(ButtonNumber)
Description
Returns 0 if the specified button (1 for the left mouse button, 2 for the right mouse button) is not pressed, else the button is pressed. Any number of buttons can be pressed at the same time. ExamineMouse() must be called before this function to update the actual button's state.

Supported OS

All

<- InitMouse() - Mouse Index - MouseDeltaX() ->