diff options
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r-- | src/gui/sdlinput.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 19ec87f02..884ce25dd 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -148,6 +148,15 @@ void SDLInput::pushInput(const SDL_Event &event) break; } +#ifdef USE_SDL2 + case SDL_TEXTINPUT: + keyInput.setType(gcn::KeyInput::PRESSED); + keyInput.setKey(gcn::Key(Key::TEXTINPUT)); + keyInput.setText(event.text.text); + mKeyInputQueue.push(keyInput); + break; +#endif + #ifdef ANDROID case SDL_ACCELEROMETER: break; |