mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 03:09:10 +02:00
Switch UI event notifications (used for soft-keyboard) from strings to enums
This commit is contained in:
1 parent
f0befda912
commit
f61baa3b51
5 files changed
+29
-22
No files matched your search
+2
-4
@@ -1110,14 +1110,12 @@ TextEdit::TextEdit(std::string_view text, std::string_view title, std::string_vi
|
||||
}
|
||||
|
||||
void TextEdit::FocusChanged(int focusFlags) {
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
if (focusFlags == FF_GOTFOCUS) {
|
||||
System_NotifyUIState("text_gotfocus");
|
||||
System_NotifyUIEvent(UIEventNotification::TEXT_GOTFOCUS);
|
||||
}
|
||||
else {
|
||||
System_NotifyUIState("text_lostfocus");
|
||||
System_NotifyUIEvent(UIEventNotification::TEXT_LOSTFOCUS);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void TextEdit::Draw(UIContext &dc) {
|
||||
|
||||
Reference in new issue
Block a user