Advertisement
TheSpicePhantom

MonitorListener

May 6th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function listen()
  2. event, side, x, y = os.pullEvent("monitor_touch", "mouse_click")
  3.     if event == "monitor_touch" then
  4.         print(x..", "..y.." auf Monitor")
  5.     end
  6.     if event == "mouse_click" then
  7.         print(x..", "..y.." auf Bildschirm")
  8.     end
  9. end
  10.  
  11. while true do
  12.     listen()
  13.     sleep(0.1)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement