MouseButton()

Syntax

Result = MouseButton(ButtonNumber)
Description
Returns 0 if the specified button number 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.

'ButtonNumber' can be one of the following constants:
  #PB_MouseButton_Left  : Tests if the left mouse button is pressed
  #PB_MouseButton_Right : Tests if the right mouse button is pressed
  #PB_MouseButton_Middle: Tests if the middle mouse button is pressed

Supported OS

All

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