mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
SDL: WIP text input event.
This commit is contained in:
parent
1a0ba0d87a
commit
a1400dc590
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue