daily pastebin goal

CC: event_monitor_touch

hevohevo May 28th, 2016 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mon = peripheral.wrap("top")
  2. while true do
  3.   local event, side, x, y = os.pullEvent("monitor_touch")
  4.   mon.clear()
  5.   mon.setCursorPos(1,1)
  6.   mon.write(x)
  7.   mon.write(", ")
  8.   mon.write(y)
  9. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand