DarkBASIC Professional Help File

DX11 IS MOUSE BUTTON HIT

Returns whether the given mouse button was just now pressed.
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 HIT(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 was just pressed or false if it is either not or it is pressed but have not yet been released since the last call to this function.

See also

INPUT Functions Menu
DX11 Function Categories