Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function listen()
- event, side, x, y = os.pullEvent("monitor_touch", "mouse_click")
- if event == "monitor_touch" then
- print(x..", "..y.." auf Monitor")
- end
- if event == "mouse_click" then
- print(x..", "..y.." auf Bildschirm")
- end
- end
- while true do
- listen()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement