Page 1 of 1

MouseLeave does not occur.

Posted: Mon Nov 06, 2006 01:57
by televoncard
I made a window which receives MouseLeave event. It is placed on left side of my application.

When I moves mouse to right, it receives MouseLeave event correctly, but when I moves mouse to left(eg. mouse cursor is moved to outside of my application) it does not receives MouseLeave event.

How can I solve this situation?

Posted: Mon Nov 06, 2006 09:37
by televoncard
I traced code inside CEGUI, and discovered CEGUI adjust mouse cursor position as it is inside constraint area.

So it seems there is no way to receive mouseLeave event when cursor goes to outside of window.

I decided to write C code to handle this situation instead of trying to handle in scripts.

Posted: Mon Nov 06, 2006 11:12
by CrazyEddie
Hi,

Yeah, CEGUI's mouse only exists within the rendering area - so effectively it can never leave.

Please look at: System::injectMouseLeaves to inform CEGUI that the mouse has left the rendering area / application window.

CE.