Advertisement
AsTio

screen pos transmission

Jun 20th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. modem = peripheral.wrap("right")
  2. while true do
  3.     event, side, xPos, yPos = os.pullEvent("monitor_touch")
  4.     print("X:" ..tostring(xPos).." Y:"..tostring(yPos))
  5.     modem.transmit(55001, 1, {tostring(xPos), tostring(yPos)})
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement