Guest User

Untitled

a guest
Jan 17th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function touchListener(_, _, x, y)
  2. --Exit Program
  3. if x == 160 and y == 1 then
  4. running = false
  5. gpu.setBackground(black)
  6. gpu.setForeground(white)
  7. term.clear()
  8. os.exit()
  9. end
  10. elseif x > blah and x < blah and y > blah and y < blah then
  11. do this
  12. end
  13. elseif x > yadda and x < yadda and y > yadda and y < yadda then
  14. ok now do this
  15. end
  16. end
  17.  
  18. event.listen("touch", touchListener)
Advertisement
Add Comment
Please, Sign In to add comment