Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("top")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(x)
- mon.write(", ")
- mon.write(y)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement