Ogre 1.6.4 SVN trunk
MSVS 9.0+
Injected types characters are not appearing in Editboxes however BACKSPACE and ENTER and RETURN are being honored. IT worked fine in CEGUI 0.6.x.
We use OIS just as the examples do. Here is our code:
Code: Select all
// Inject event into the CEGUI system.
mConsumed = mCEGUISystem->injectKeyDown( ke.key );
mConsumed = mCEGUISystem->injectChar( ke.text );
The window (Editbox) has two subscriptions:
Code: Select all
mLEB[ LEB_ACCOUNT_PASS ]->subscribeEvent( CEGUI::Editbox::EventCharacterKey, CEGUI::Event::Subscriber( &clsGUILogin::event_LEB_ACCOUNT_CharacterKey, this ) );
mLEB[ LEB_ACCOUNT_PASS ]->subscribeEvent( CEGUI::Editbox::EventTextAccepted, CEGUI::Event::Subscriber( &clsGUILogin::event_LEB_ACCOUNT_PASS_TextAccepted, this ) );
The these events ARE being fired when the keys are pressed therefore we know the injection event is working. We don't know why the characters are NOT appearing in the text boxes.
Any ideas why CEGUI is not honoring typed characters?