Page 1 of 1

Avoid some events

Posted: Tue Dec 26, 2006 23:41
by EtherealGF
Hi all !!!

I'm using OGRE and CEGUI 0.4.1, in my app I have to take some key events to the GUI and others to handle the camera, but when I'm writing in an editbox, my app moves the camera .... my question is: how can I know whether an editbox has the focus ?

Posted: Sun Dec 31, 2006 13:02
by Rackle
The injectxxx() functions (injectKeyDown and injectKeyUp) return true when then key was handled/processed by Cegui and false when it didn't know what to do with it.

Posted: Tue Jan 02, 2007 15:12
by LennyH
->hasInputFocus() I think would get you the bool you seem to be looking for, as well.