Skip to content

function disableControls (client-side)

Available since version: 0.0.4

Note

You can use this function, for example: to prevent game from showing menu on ESCAPE.

This function will disable/enable default game actions that are bound to keys.

Declaration

void disableControls(bool toggle)

Parameters

  • bool toggle: true when you want to disable game keys, otherwise false.