mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 19:25:18 +02:00
Switch UI event notifications (used for soft-keyboard) from strings to enums
This commit is contained in:
+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