mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
SDL: WIP text input event.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user