AsTio

screen pos transmission

Jun 20th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data