Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require("event")
- while true do
- local e = {event.pull()}
- if e[1] == "key_down" then
- print(e[4])
- elseif e[1] == "touch" then
- break
- elseif e[1] == "key_pressed" then
- print(e[4])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement