Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function touch(xmin,xmax,ymin,ymax)
- local b,e,x,y=os.pullEvent("mouse_click")
- if e=="mouse_click" then
- if b=="1" then
- if x >= xmin and x <= xmax and y >= ymin and y <= ymax then
- return "c1"
- elseif
- e=="mouse_click" then
- if b=="2" then
- if x>=xmin and x<=xmax and y>=ymin and y<=ymax then
- return "c2"
- else
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement