Some GUI Events not being consumed
Posted: Thu Feb 16, 2006 16:58
I have keyPressed and keyReleased methods defined.
Within keyPressed I execute:
bool rtn1 = CEGUI::System::getSingleton().injectKeyDown(e->getKey());
bool rtn2 =CEGUI::System::getSingleton().injectChar(e->getKeyChar());
Within keyReleased I execute
bool rtn = CEGUI::System::getSingleton().injectKeyUp(e->getKey());
Though I'm typing into a text widget (and the text is appearing correctly within it) neither rtn1 (in pressed) nor rtn (in released) return a true indicating that CEGUI has consumed the event.
Only rtn2 is true as one would expect. Currently this means that I'm unable to detect a release and the end result is that the "release event" leaks through to the background (non-CEGUI) event handler.
Can someone please help me to understand this?
Thanks.
Within keyPressed I execute:
bool rtn1 = CEGUI::System::getSingleton().injectKeyDown(e->getKey());
bool rtn2 =CEGUI::System::getSingleton().injectChar(e->getKeyChar());
Within keyReleased I execute
bool rtn = CEGUI::System::getSingleton().injectKeyUp(e->getKey());
Though I'm typing into a text widget (and the text is appearing correctly within it) neither rtn1 (in pressed) nor rtn (in released) return a true indicating that CEGUI has consumed the event.
Only rtn2 is true as one would expect. Currently this means that I'm unable to detect a release and the end result is that the "release event" leaks through to the background (non-CEGUI) event handler.
Can someone please help me to understand this?
Thanks.