Advertisement
temposabel

mouse click

Dec 18th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.15 KB | None | 0 0
  1. while true do
  2.   local event, button, x, y = os.pullEvent( "mouse_click" )
  3.  
  4.   print( "The mouse button ", button, " was pressed at ", x, " and ", y )
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement