WinXIsMousePressed


WinXIsMousePressed (button)

Determines if a mouse button is currently pressed

Parameter Description
button An MBT constant identifiying the button the check

Returns

$$TRUE if the button is pressed, $$FALSE otherwise

Remarks

The button parameter will be one of the following constants:

$$MBT_LEFT
The left mosue button
$$MBT_MIDDLE
The middle mouse button (or the wheel for wheel mice)
$$MBT_RIGHT
The right mouse button

Examples

'is the left button pressed?
IF WinXIsMouseButtonPressed ($$MBT_LEFT) THEN PRINT "Left button is down"

Related Links

onMouseDown (Callback)
onMouseUp (Callback)
WinXGetMousePos