SHARE
TWEET

CC: event_monitor_touch

hevohevo May 28th, 2016 60 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
Top