Page 1 of 1

Fill Editbox

Posted: Thu Jun 07, 2007 12:21
by RecyclingDuck
Hey!

My wish is to fill an Editbox by some letters, that the user is typing.
I'm injecting the user input (caught by ogre - ois) to CEGUI see:

Code: Select all

bool keyPressed( const OIS::KeyEvent &e )
      {
         CEGUI::System::getSingletonPtr()->injectKeyDown(e.key);
         return true;
      }


The user is able to select an editbox, but typing some letters doesn't effect something.
Do I have to activate the Editbox in some way ?

Thanks for help ;)

Posted: Thu Jun 07, 2007 12:59
by Rackle
Are you injecting every event?
injectMouseMove
injectMouseButtonDown
injectMouseButtonUp
injectKeyDown
injectChar
injectKeyUp

Have a read through http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_6

Posted: Thu Jun 07, 2007 13:17
by RecyclingDuck
Ahh :D
I thought injectChar wouldn't be necessary.

Now it's working fine - thanks!