isHit() not working for some reason
Posted: Thu Aug 17, 2006 20:04
Hey all,
I am trying to see if the mouse is hovering over a certain window. I will be checking if it is hovering over that window while at the same time not hovering over another specific window (to sense overlap). For some reason it seems like isHit() never returns true for me. Am I using it incorrectly? I figured I may not be getting the correct mouse coordinates so I tried the following which should definately work:
*getWindow is a function that I wrote, it works properly.
Any ideas?
I am trying to see if the mouse is hovering over a certain window. I will be checking if it is hovering over that window while at the same time not hovering over another specific window (to sense overlap). For some reason it seems like isHit() never returns true for me. Am I using it incorrectly? I figured I may not be getting the correct mouse coordinates so I tried the following which should definately work:
Code: Select all
if(getWindow("media1_window")->isHit(getWindow("media1_window")->getPosition()))
{
exit(0);
}
*getWindow is a function that I wrote, it works properly.
Any ideas?