DarkBASIC Professional Help File

DX11 IS MOUSE BUTTON DOWN

Returns the state of the given mouse button.
Button 0 is the left mouse button, 1 is the right and 2 and 3 are any extra available buttons
present on the mouse (2 usually corresponds to pressing the middle wheel).

Syntax

    Return Boolean = DX11 IS MOUSE BUTTON DOWN(mouseButton)

Parameters

    mouseButton

> Integer
> The mouse button to check the state of (valid range 0 .. 3).

Returns

The state of the mouse button; true if it is pressed and false otherwise.

See also

INPUT Functions Menu
DX11 Function Categories