From a1400dc59016c630764bca4d95dafee082a25924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 16 Mar 2015 22:23:06 -0700 Subject: [PATCH] SDL: WIP text input event. --- examples/common/entry/entry_sdl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index 48a049ea..b9564339 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -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;