william200027

Touch-Monitor

Jun 27th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. while true do
  2. event, side, xPos, yPos = os.pullEvent("monitor_touch")
  3. print(event .. " => Side: " .. tostring(side) .. ", " ..
  4.   "X: " .. tostring(xPos) .. ", " ..
  5.   "Y: " .. tostring(yPos))
  6. --print(xPos)
  7. --print(yPos)
  8. --print(side)
  9. --print(event)
  10. end
Add Comment
Please, Sign In to add comment