Add menu_input_dialog_display_kb/menu_input_dialog_hide_kb

This commit is contained in:
twinaphex 2016-09-15 18:45:57 +02:00
parent 84160c092c
commit bd565f79ec
2 changed files with 22 additions and 1 deletions

View File

@ -736,6 +736,24 @@ bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
return true;
}
void menu_input_dialog_display_kb(void)
{
menu_input_t *menu_input = menu_input_get_ptr();
if (!menu_input)
return;
menu_input->keyboard.display = true;
}
void menu_input_dialog_hide_kb(void)
{
menu_input_t *menu_input = menu_input_get_ptr();
if (!menu_input)
return;
menu_input->keyboard.display = false;
}
bool menu_input_dialog_start_search(void)
{
menu_handle_t *menu = NULL;

View File

@ -113,6 +113,10 @@ typedef struct menu_input_ctx_line
bool menu_input_dialog_start_search(void);
void menu_input_dialog_hide_kb(void);
void menu_input_dialog_display_kb(void);
bool menu_input_dialog_start(menu_input_ctx_line_t *line);
void menu_input_dialog_end(void);
@ -138,7 +142,6 @@ int16_t menu_input_mouse_state(enum menu_input_mouse_state state);
bool menu_input_mouse_check_vector_inside_hitbox(menu_input_ctx_hitbox_t *hitbox);
bool menu_input_ctl(enum menu_input_ctl_state state, void *data);
RETRO_END_DECLS