Android: Process input prompts more clearly.

This way, the processing is generally inline or explicitly a callback.
There's also less parsing issues since all the parsing is centralized.
This commit is contained in:
Unknown W. Brackets committed 2020-03-08 20:45:01 -07:00
1 parent efceb031ce
commit a3e12f4242
9 files changed
+127 -113

No files matched your search

+4 -1
View File
@@ -121,7 +121,10 @@ UI::EventReturn ChatMenu::OnSubmit(UI::EventParams &e) {
chatEdit_->SetFocus();
sendChat(chat);
#elif PPSSPP_PLATFORM(ANDROID)
System_SendMessage("inputbox", "Chat:");
auto n = GetI18NCategory("Networking");
System_InputBoxGetString(n->T("Chat"), "", [](bool result, const std::string &value) {
sendChat(value);
});
#endif
return UI::EVENT_DONE;
}