Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function touchListener(_, _, x, y)
- --Exit Program
- if x == 160 and y == 1 then
- running = false
- gpu.setBackground(black)
- gpu.setForeground(white)
- term.clear()
- os.exit()
- end
- elseif x > blah and x < blah and y > blah and y < blah then
- do this
- end
- elseif x > yadda and x < yadda and y > yadda and y < yadda then
- ok now do this
- end
- end
- event.listen("touch", touchListener)
Advertisement
Add Comment
Please, Sign In to add comment