Mice! where is it :-D?

BlitzPlus Forums/BlitzPlus Programming/Mice! where is it :-D?

You can also make a function that checks whether or not the pointer is within a given rect when the mouse button is clicked. Something like this:

mx = mousex()
my = mousey()
if mousehit(1) then
   if mx > 100 and mx < 200 and my > 50 and my < 70 then doSomething1()
   if mx > 100 and mx < 200 and my > 80 and my < 100 then doSomething2()
end if