bindKey

Revision as of 14:44, 15 February 2020 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

bindKey

Signature: void bindKey(int keyCode, int keyState, function callback)

Usage: bind a handler to be called when a specific key is pressed or released

Parameters

int keyCode The key code to bind the event for.
int keyState The key state to bind the event for.
function callback The scripting fucntion to call when the event occurs.

Return

void

On failure: void