Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("--- Key Code Finder ---")
- print("Press any key to see its ID.")
- print("Hold Ctrl+T to exit.")
- print("-----------------------")
- while true do
- local event, key = os.pullEvent("key")
- local name = keys.getName(key)
- print("Key: " .. (name or "Unknown") .. " | ID: " .. key)
- end
Advertisement
Add Comment
Please, Sign In to add comment