mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(Menu) Use menu_entry_action
This commit is contained in:
parent
2e1ec249b0
commit
e66f7db4a9
@ -716,7 +716,7 @@ static int menu_input_mouse_frame(
|
|||||||
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
|
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
|
||||||
|
|
||||||
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_OK))
|
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_OK))
|
||||||
return cbs->action_ok(entry->path, entry->label, entry->type, nav->selection_ptr);
|
return menu_entry_action(entry, nav->selection_ptr, MENU_ACTION_OK);
|
||||||
|
|
||||||
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_SET_NAVIGATION))
|
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_SET_NAVIGATION))
|
||||||
{
|
{
|
||||||
@ -846,7 +846,7 @@ static int pointer_tap(menu_file_list_cbs_t *cbs,
|
|||||||
|| setting->type == ST_FLOAT || setting->type == ST_STRING))
|
|| setting->type == ST_FLOAT || setting->type == ST_STRING))
|
||||||
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
|
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
|
||||||
else if (menu->pointer.ptr == menu->navigation.selection_ptr)
|
else if (menu->pointer.ptr == menu->navigation.selection_ptr)
|
||||||
return cbs->action_ok(entry->path, entry->label, entry->type, menu->navigation.selection_ptr);
|
return menu_entry_action(entry, menu->navigation.selection_ptr, MENU_ACTION_OK);
|
||||||
else
|
else
|
||||||
menu_navigation_set(&menu->navigation, menu->pointer.ptr, false);
|
menu_navigation_set(&menu->navigation, menu->pointer.ptr, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user