GUICHAN: fixed blinking virtual keyboard with guichan library

This commit is contained in:
lubomyr
2018-03-27 00:34:01 +03:00
parent 5e0cf567cb
commit 781877ebb6

View File

@@ -154,7 +154,7 @@ namespace gcn
void TextField::mousePressed(MouseEvent& mouseEvent)
{
#ifdef ANDROID
if (showAndroidKeyboard)
if (showAndroidKeyboard && !SDL_IsScreenKeyboardShown(NULL))
SDL_ANDROID_ToggleScreenKeyboardTextInput(getText().c_str());
#endif
if (mouseEvent.getButton() == MouseEvent::LEFT)