DarkBASIC Professional Help File

DX11 IS KEY HIT

Returns whether the given key was just pressed.
Keys correspond to the DIK_XXX constants available in the DX11Defines.dba include file.

Syntax

    Return Boolean = DX11 IS KEY HIT(key)

Parameters

    key

> Integer
> The key identifier to check the state of (see the DIK_XXX constants for valid values).

Returns

The state of the key; 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