mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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
+16
-14
@@ -548,21 +548,23 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
|
||||
});
|
||||
return true;
|
||||
}
|
||||
case SystemRequestType::NOTIFY_UI_STATE:
|
||||
case SystemRequestType::NOTIFY_UI_EVENT:
|
||||
{
|
||||
if (!param1.empty()) {
|
||||
if (!strcmp(param1.c_str(), "menu")) {
|
||||
CloseLaunchItem();
|
||||
}
|
||||
else if (!strcmp(param1.c_str(), "popup_closed")) {
|
||||
DeactivateTextEditInput();
|
||||
}
|
||||
else if (!strcmp(param1.c_str(), "text_gotfocus")) {
|
||||
ActivateTextEditInput(true);
|
||||
}
|
||||
else if (!strcmp(param1.c_str(), "text_lostfocus")) {
|
||||
DeactivateTextEditInput(true);
|
||||
}
|
||||
switch ((UIEventNotification)param3) {
|
||||
case UIEventNotification::MENU_RETURN:
|
||||
CloseLaunchItem();
|
||||
break;
|
||||
case UIEventNotification::POPUP_CLOSED:
|
||||
DeactivateTextEditInput();
|
||||
break;
|
||||
case UIEventNotification::TEXT_GOTFOCUS:
|
||||
ActivateTextEditInput(true);
|
||||
break;
|
||||
case UIEventNotification::TEXT_LOSTFOCUS:
|
||||
DeactivateTextEditInput(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user