DXUTIsMouseButtonDown

Indicates whether a specified mouse button is up or down at the time the function is called.

BOOL DXUTIsMouseButtonDown(
  BYTE vButton
);

Parameters

vButton
[in] Virtual key code of a mouse button. Allowed values are VK_LBUTTON, VK_RBUTTON, VK_MBUTTON, VK_XBUTTON1, and VK_XBUTTON2.

Return Values

TRUE if the specified vButton mouse button is down; FALSE otherwise.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTIsKeyDown