backspace and delete not woking
Posted: Sun Apr 07, 2013 14:47
Hello,
I've a editbox and I can input but delete and backspace isn't working.
I have checked other topics in this formula, I said we shuld inject scancode insted of virtualcode into CEGUI.
However, even I send scancode to CEGUI, it still don'y work.
I send the scancode like this
SDL_Event event;
case SDL_KEYDOWN :
CEGUI::System::getSingleton().injectKeyDown(event->key.keysym.scancode);
case SDL_KEYUP :
CEGUI::System::getSingleton().injectKeyUp(event->key.keysym.scancode);
What have I done wrong?
Thanks for any help.
I've a editbox and I can input but delete and backspace isn't working.
I have checked other topics in this formula, I said we shuld inject scancode insted of virtualcode into CEGUI.
However, even I send scancode to CEGUI, it still don'y work.
I send the scancode like this
SDL_Event event;
case SDL_KEYDOWN :
CEGUI::System::getSingleton().injectKeyDown(event->key.keysym.scancode);
case SDL_KEYUP :
CEGUI::System::getSingleton().injectKeyUp(event->key.keysym.scancode);
What have I done wrong?
Thanks for any help.