i try find some solutions in the old topics but nothing...
For the input injection in CEGUI i use the tutorial in the wiki so the code is this (for the key up and down):
Code: Select all
case SDL_KEYDOWN:
// to tell CEGUI that a key was pressed, we inject the scancode.
CEGUI::System::getSingleton().injectKeyDown(e.key.keysym.scancode);
// as for the character it's a litte more complicated. we'll use for translated unicode value.
// this is described in more detail below.
if ((e.key.keysym.unicode != 0)
{
CEGUI::System::getSingleton().injectChar(e.key.keysym.unicode);
}
break;
// key up
case SDL_KEYUP:
// like before we inject the scancode directly.
CEGUI::System::getSingleton().injectKeyUp(e.key.keysym.scancode);
break;
But i have this problems:
1) the DEL key don't work
2) the arrows keys (UP,DOWN,LEFT,RIGHT) don't work
ps i am testing this inputs in a default cegui editbox
What is the problem?
thanks
Martin
