SDL: WIP text input event.

This commit is contained in:
Branimir Karadžić 2015-03-16 22:23:06 -07:00
parent 1a0ba0d87a
commit a1400dc590

View file

@ -430,6 +430,17 @@ namespace entry
}
break;
case SDL_TEXTINPUT:
{
const SDL_TextInputEvent& tev = event.text;
WindowHandle handle = findHandle(tev.windowID);
if (isValid(handle) )
{
m_eventQueue.postCharEvent(handle, 1, (const uint8_t*)tev.text);
}
}
break;
case SDL_KEYDOWN:
{
const SDL_KeyboardEvent& kev = event.key;