keys.getName
From ComputerCraft
Jump to navigation
Jump to search
keys.getName Function | |
---|---|
Syntax keys.getName(
| |
Returns | string keyName |
API | keys |
Source | CC:Tweaked (source) |
Returns the key name of a numerical key code. Returns nil if the key code is not valid.
|
|||
Get the name for the key code 50 and print it. | |||
Code | print(keys.getName(50))
|
||
Output | m |