My source works fine for lower case characters, but if i press shift i don´t get capitals or even chars which need a pressed shift key.
Therefore i tried to give CEGUI a manual "shift" state so that every char is a shifted one, but even that didn´t work.
This is a part of my source:
Code: Select all
gui.system->injectKeyDown( CEGUI::Key::LeftShift );
// send current key state to GUI
gui.system->injectChar( static_cast<uint>( input.keyListener.keyChar ));
gui.system->injectKeyDown( static_cast<uint>( input.keyListener.keyCode1 ));
bool CKeyListener::keyPressed( const OIS::KeyEvent &arg )
{
keyCode1 = arg.key;
keyChar = arg.text;
return true;
}
Any idea/help for me:?:
