Avoid some events

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

EtherealGF
Just popping in
Just popping in
Posts: 1
Joined: Tue Dec 26, 2006 22:59

Avoid some events

Postby EtherealGF » Tue Dec 26, 2006 23:41

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 ?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Sun Dec 31, 2006 13:02

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.

LennyH
Quite a regular
Quite a regular
Posts: 92
Joined: Thu Nov 30, 2006 20:50

Postby LennyH » Tue Jan 02, 2007 15:12

->hasInputFocus() I think would get you the bool you seem to be looking for, as well.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 14 guests