MouseLeave does not occur.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

televoncard
Just popping in
Just popping in
Posts: 4
Joined: Mon Oct 30, 2006 02:28

MouseLeave does not occur.

Postby televoncard » Mon Nov 06, 2006 01:57

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?

televoncard
Just popping in
Just popping in
Posts: 4
Joined: Mon Oct 30, 2006 02:28

Postby televoncard » Mon Nov 06, 2006 09:37

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Nov 06, 2006 11:12

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests