Non-blocking text input. so you won't get kicked by server because of no reply to ping

This commit is contained in:
Sergii Pylypenko
2015-04-29 21:40:05 +03:00
parent ba230ce5a0
commit 2660e33dd2

View File

@@ -938,9 +938,12 @@ void QueryString::ClickEditBox(Window *w, Point pt, int wid, int click_count, bo
char text[512];
strecpy(text, this->text.buf, lastof(text));
this->text.DeleteAll();
SDL_ANDROID_GetScreenKeyboardTextInput(text, sizeof(text) - 1); /* Invoke Android built-in screen keyboard */
SDL_ANDROID_ToggleScreenKeyboardTextInput(text); // Invoke Android built-in screen keyboard, this will not block
/*
SDL_ANDROID_GetScreenKeyboardTextInput(text, sizeof(text) - 1); // Invoke Android built-in screen keyboard, this will block
this->text.Assign(text);
w->OnEditboxChanged(wid);
*/
#endif
}