mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Cleanups
This commit is contained in:
parent
b038b4ae41
commit
0b78b07573
@ -641,7 +641,6 @@ bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
|
|||||||
{
|
{
|
||||||
static char menu_input_keyboard_label_setting[256];
|
static char menu_input_keyboard_label_setting[256];
|
||||||
menu_input_t *menu_input = menu_input_get_ptr();
|
menu_input_t *menu_input = menu_input_get_ptr();
|
||||||
menu_handle_t *menu = NULL;
|
|
||||||
static const char *menu_input_keyboard_label = NULL;
|
static const char *menu_input_keyboard_label = NULL;
|
||||||
static const char **menu_input_keyboard_buffer;
|
static const char **menu_input_keyboard_buffer;
|
||||||
|
|
||||||
@ -681,14 +680,17 @@ bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
|
|||||||
memset(menu_input, 0, sizeof(menu_input_t));
|
memset(menu_input, 0, sizeof(menu_input_t));
|
||||||
break;
|
break;
|
||||||
case MENU_INPUT_CTL_SEARCH_START:
|
case MENU_INPUT_CTL_SEARCH_START:
|
||||||
if (!menu_driver_ctl(
|
{
|
||||||
RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
menu_handle_t *menu = NULL;
|
||||||
return false;
|
if (!menu_driver_ctl(
|
||||||
|
RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
||||||
|
return false;
|
||||||
|
|
||||||
menu_input->keyboard.display = true;
|
menu_input->keyboard.display = true;
|
||||||
menu_input_keyboard_label = menu_hash_to_str(MENU_VALUE_SEARCH);
|
menu_input_keyboard_label = menu_hash_to_str(MENU_VALUE_SEARCH);
|
||||||
menu_input_keyboard_buffer =
|
menu_input_keyboard_buffer =
|
||||||
input_keyboard_start_line(menu, menu_input_search_cb);
|
input_keyboard_start_line(menu, menu_input_search_cb);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MENU_INPUT_CTL_MOUSE_PTR:
|
case MENU_INPUT_CTL_MOUSE_PTR:
|
||||||
{
|
{
|
||||||
@ -849,8 +851,8 @@ static int menu_input_mouse_frame(
|
|||||||
menu_file_list_cbs_t *cbs, menu_entry_t *entry,
|
menu_file_list_cbs_t *cbs, menu_entry_t *entry,
|
||||||
uint64_t input_mouse, unsigned action)
|
uint64_t input_mouse, unsigned action)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
size_t selection;
|
size_t selection;
|
||||||
|
int ret = 0;
|
||||||
menu_input_t *menu_input = menu_input_get_ptr();
|
menu_input_t *menu_input = menu_input_get_ptr();
|
||||||
|
|
||||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection);
|
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user