MouseButton()

语法

Result = MouseButton(Button)
概要
Returns zero 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.

参数

Button It 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

返回值

Nonzero if the specified mouse button is pressed, zero otherwise.

参阅

ExamineMouse()

已支持操作系统

所有

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