Skip to content

function KeyToggled (client-side)

Available since version: 0.3.0

The function is used to check whether the specified keyboard key was toggled from unpressed to pressed state.

Declaration

bool KeyToggled(int key)

Parameters

  • int key: The key code to check. For more information about key codes, see Key Constants.

Returns bool

True if the key was toggled, false otherwise.