Switch UI event notifications (used for soft-keyboard) from strings to enums

This commit is contained in:
Henrik Rydgård
2024-05-20 18:25:16 +02:00
parent f0befda912
commit f61baa3b51
5 changed files with 29 additions and 22 deletions
+2 -4
View File
@@ -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) {