Skip to content

function isKeyPressed (client-side)

Available since version: 0.0.0

The function is used to check whether the specified key is pressed.

Declaration

bool isKeyPressed(int id)

Parameters

  • int id: the id of the key. For more information see Key constants.

Returns bool

true when the key is pressed, otherwise false.