OSK support final update

- Renamed few functions to avoid confusion
- Now UI will report text (gotfocus, lostfocus), popup_closed to the frontend
- Both cases (DPad, Keyboard) covered
This commit is contained in:
Bashar Astifan committed 2023-08-24 06:33:36 +04:00
1 parent 3225446ff6
commit 4e2652bd4b
6 files changed
+110 -64

No files matched your search

+2 -5
View File
@@ -1086,13 +1086,10 @@ TextEdit::TextEdit(const std::string &text, const std::string &title, const std:
void TextEdit::FocusChanged(int focusFlags) {
#if PPSSPP_PLATFORM(UWP)
if (focusFlags == FF_GOTFOCUS) {
System_NotifyUIState("show_keyboard");
System_NotifyUIState("text_gotfocus");
}
else {
// OSK will be hidden by `Back` button and no reason to check focus
if (!isInputPaneVisible()) {
System_NotifyUIState("hide_keyboard");
}
System_NotifyUIState("text_lostfocus");
}
#endif
}