keys.getName

From ComputerCraft Wiki
Revision as of 19:45, 21 April 2013 by Hawk777 (Talk | contribs) (New page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function keys.getName
Looks up the name of a key given its numerical key code.
Syntax keys.getName(int code)
Returns string the name of the key
Part of ComputerCraft
API keys

Examples

Grid paper.png  Example
Look up the name of key code 42.
Code
print(keys.getName(42))
Output leftShift