Difference between revisions of "Lua:keyDown"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
− | == | + | {{LuaSeeAlso}} |
+ | |||
+ | === Related Functions === | ||
* [[keyUp]] | * [[keyUp]] | ||
* [[Virtual-Key Code]] | * [[Virtual-Key Code]] | ||
− |
Revision as of 21:40, 19 March 2017
function keyDown(key)
Sets the key to the down state. Toggling between down and up can be used to type strings. And holding down can also be used to drag stuff. (Like the left mouse button down)
Function Parameters
Parameter | Type | Description |
---|---|---|
key | Virtual-Key Code | The keycode for the key to set down |