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

This commit is contained in:
Henrik Rydgård committed 2024-05-20 18:25:16 +02:00
1 parent f0befda912
commit f61baa3b51
5 files changed
+29 -22

No files matched your search

+8 -1
View File
@@ -56,6 +56,13 @@ void System_LaunchUrl(LaunchUrlType urlType, const char *url);
// Going forward, "optional" things (PPSSPP will still function alright without it) will be requests,
// to make implementations simpler in the default case.
enum class UIEventNotification {
MENU_RETURN,
POPUP_CLOSED,
TEXT_GOTFOCUS,
TEXT_LOSTFOCUS,
};
enum class SystemRequestType {
INPUT_TEXT_MODAL,
ASK_USERNAME_PASSWORD,
@@ -79,7 +86,7 @@ enum class SystemRequestType {
// Note: height specified as param3, width based on param1.size() / param3.
SEND_DEBUG_SCREENSHOT,
NOTIFY_UI_STATE, // Used on Android only. Not a SystemNotification since it takes a parameter.
NOTIFY_UI_EVENT, // Used to manage events that are useful for popup virtual keyboards.
SET_KEEP_SCREEN_BRIGHT,
// High-level hardware control