bindKey: Difference between revisions

Jump to navigation Jump to search
46 bytes added ,  20 April 2021
no edit summary
No edit summary
No edit summary
Line 6: Line 6:
|parameters = int keyCode, int keyState, function callback
|parameters = int keyCode, int keyState, function callback
|parameter1 = int keyCode The key code to bind the event for.
|parameter1 = int keyCode The key code to bind the event for.
|parameter2 = int keyState The key state to bind the event for.
|parameter2 = int keyState The key state to bind the event for. KEYSTATE_DOWN, KEYSTATE_UP, or KEYSTATE_BOTH.
|parameter3 = function callback The scripting function to call when the specified key is pressed, released, or either pressed/released.
|parameter3 = function callback The scripting function to call when the specified key is pressed, released, or either pressed/released.
|callbackParametersSS = KeyEvent event, Client client
|callbackParametersSS = KeyEvent event, Client client
6,834

edits

Navigation menu