DXUTIsKeyDown

Indicates whether a specified keyboard key is up or down at the time the function is called.

BOOL DXUTIsKeyDown(
  BYTE vKey
);

Parameters

vKey
[in] Virtual key code of a keyboard key. For example VK_F1, VK_LSHIFT, VK_RCONTROL, VK_RMENU, and 41 (representing the 'A' key).

Return Values

TRUE if the specified vKey keyboard key is down; FALSE otherwise.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTIsMouseButtonDown