mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Cleanups
This commit is contained in:
parent
486a5801c0
commit
ff8fec64ad
@ -133,6 +133,17 @@ void menu_input_st_cheat_callback(void *userdata, const char *str)
|
||||
menu_input_key_end_line(menu);
|
||||
}
|
||||
|
||||
void menu_input_search_start(void)
|
||||
{
|
||||
if (!driver.menu)
|
||||
return;
|
||||
|
||||
driver.menu->keyboard.display = true;
|
||||
driver.menu->keyboard.label = "Search: ";
|
||||
driver.menu->keyboard.buffer =
|
||||
input_keyboard_start_line(driver.menu, menu_input_search_callback);
|
||||
}
|
||||
|
||||
void menu_input_key_event(bool down, unsigned keycode,
|
||||
uint32_t character, uint16_t mod)
|
||||
{
|
||||
@ -144,12 +155,7 @@ void menu_input_key_event(bool down, unsigned keycode,
|
||||
(void)mod;
|
||||
|
||||
if (character == '/')
|
||||
{
|
||||
driver.menu->keyboard.display = true;
|
||||
driver.menu->keyboard.label = "Search: ";
|
||||
driver.menu->keyboard.buffer =
|
||||
input_keyboard_start_line(driver.menu, menu_input_search_callback);
|
||||
}
|
||||
menu_input_search_start();
|
||||
}
|
||||
|
||||
void menu_input_poll_bind_state(struct menu_bind_state *state)
|
||||
|
@ -71,6 +71,8 @@ int menu_input_bind_iterate_keyboard(void *data);
|
||||
|
||||
unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_state);
|
||||
|
||||
void menu_input_search_start(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user