key_up event
Occurs every time the user releases a previously pressed down key.
|
|||
| Shows what key the player released. | |||
| Code | <nowiki>
while true do
local event, key_code = os.pullEvent("key_up")
print("The player released the", keys.getName(key_code), "key")
end
</nowiki>
|
||
| key_up Event | |
|---|---|
Returns
| |
| Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.