Advertisement
hevohevo

CC: event_monitor_touch

May 28th, 2016
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement