DarkBASIC Professional Help File

DX11 IS KEY ACTIVE

Useful for taking textual input from the keyboard; works like DX11 IS KEY HIT, but retriggers
after being held down for half a second and then triggers again 20 times per second after that.
In a future release the trigger times might be adjustable to better fit your individual requirements.
Keys correspond to the DIK_XXX constants available in the DX11Defines.dba include file.

Syntax

    Return Boolean = DX11 IS KEY ACTIVE(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 when active and false when inactive. You can poll this function to gather textual input from the user.

See also

INPUT Functions Menu
DX11 Function Categories