mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
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:
1 parent
3225446ff6
commit
4e2652bd4b
6 files changed
+110
-64
No files matched your search
+2
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user