mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Create menu_input_dialog_get_label_buffer functions
This commit is contained in:
parent
982a818b48
commit
e8e16aca9e
@ -616,8 +616,6 @@ static void rgui_render(void *data)
|
||||
|
||||
menu_input_ctl(MENU_INPUT_CTL_KEYBOARD_LABEL, &label);
|
||||
|
||||
if (!str)
|
||||
str = "";
|
||||
snprintf(msg, sizeof(msg), "%s\n%s", label, str);
|
||||
rgui_render_messagebox(msg);
|
||||
}
|
||||
|
@ -138,10 +138,21 @@ static menu_input_t *menu_input_get_ptr(void)
|
||||
return &menu_input_state;
|
||||
}
|
||||
|
||||
|
||||
static const char **menu_input_keyboard_buffer;
|
||||
static char menu_input_keyboard_label_setting[256] = {0};
|
||||
static char menu_input_keyboard_label[256] = {0};
|
||||
|
||||
const char *menu_input_dialog_get_label_buffer(void)
|
||||
{
|
||||
return menu_input_keyboard_label;
|
||||
}
|
||||
|
||||
const char *menu_input_dialog_get_label_setting_buffer(void)
|
||||
{
|
||||
return menu_input_keyboard_label_setting;
|
||||
}
|
||||
|
||||
void menu_input_dialog_end(void)
|
||||
{
|
||||
menu_input_t *menu_input = menu_input_get_ptr();
|
||||
|
@ -109,6 +109,10 @@ typedef struct menu_input_ctx_line
|
||||
input_keyboard_line_complete_t cb;
|
||||
} menu_input_ctx_line_t;
|
||||
|
||||
const char *menu_input_dialog_get_label_setting_buffer(void);
|
||||
|
||||
const char *menu_input_dialog_get_label_buffer(void);
|
||||
|
||||
const char *menu_input_dialog_get_buffer(void);
|
||||
|
||||
bool menu_input_dialog_start_search(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user