GetCommandsBoundToKey: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} Gets the commands bound to a key. ==Syntax== <syntaxhighlight lang="lua"> string getCommandsBoundToKey ( string theKey, string keyState ) </syntaxhighlight> ===Required Argu...")
 
m (Correction)
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string getCommandsBoundToKey ( string theKey, string keyState )
table getCommandsBoundToKey ( string theKey, string keyState )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 12:36, 20 August 2011

Gets the commands bound to a key.

Syntax

table getCommandsBoundToKey ( string theKey, string keyState )

Required Arguments

  • theKey: See key names for a list of possible keys
  • keyState: A string that has one of the following values:
    • "up": If the bound key should trigger the function when the key is released
    • "down": If the bound key should trigger the function when the key is pressed

Returns

Returns a table of the commands bound on that key.

Example

--Example here

See Also