[SOLVED] Catch all CEGUI's event...

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

hurricane
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Fri Nov 28, 2008 11:59

[SOLVED] Catch all CEGUI's event...

Postby hurricane » Sun Feb 01, 2009 09:30

Hi all,

is there a method to control (test a bool value) if CEGUI has recive a know-event (for example windows-dragging) so i can inject (or not) input to my application?

for a mouse click is simple: in the handler i set a boolean and after i test it (before a new injection of input i reset to false) but for default events??

so:

if there are valid inputs in CEGUI i don't want any input in my application
if no input in CEGUI -> input in my application


otherwise can i test if the mouse is enter in the window and so set a bool value...is it correct?


EDIT: i am a NOOB!!! i see return value of CEGUI's inject input and now i test it...if the return value is TRUE i don't inject input in my application.


thanks

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

Postby CrazyEddie » Sun Feb 01, 2009 20:46

Hi,

You're correct about how that's supposed to work, although in the 0.6.x series I introduced an issue that means it's not always reliable :( If you encounter issues, you may have to subscribe some handlers to windows that just return true - this way the inject functions will also return true.

Sorry about the aggro!

CE.


Return to “Help”

Who is online

Users browsing this forum: Baidu [Spider] and 25 guests