From 9a4bdf5cea082fa57073c874111c28db533bab67 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 22 May 2019 10:54:08 +0200 Subject: [PATCH] (Mouse/Touch) Core options - touching a core option or pressing with the left mouse button on it will now show a dropdown list --- menu/cbs/menu_cbs_ok.c | 2 +- menu/cbs/menu_cbs_select.c | 2 +- menu/menu_cbs.h | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 49da512e3a..c9142c31c8 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -2910,7 +2910,7 @@ static int action_ok_audio_run(const char *path, #endif } -static int action_ok_core_option_dropdown_list(const char *path, +int action_ok_core_option_dropdown_list(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { char core_option_lbl[256]; diff --git a/menu/cbs/menu_cbs_select.c b/menu/cbs/menu_cbs_select.c index 462c1bdc93..38974ab908 100644 --- a/menu/cbs/menu_cbs_select.c +++ b/menu/cbs/menu_cbs_select.c @@ -118,7 +118,7 @@ static int action_select_path_use_directory(const char *path, static int action_select_core_setting(const char *path, const char *label, unsigned type, size_t idx) { - return core_setting_right(type, label, true); + return action_ok_core_option_dropdown_list(path, label, type, idx, 0); } static int shader_action_parameter_select(const char *path, const char *label, unsigned type, diff --git a/menu/menu_cbs.h b/menu/menu_cbs.h index 1d4ad1acee..e625b49644 100644 --- a/menu/menu_cbs.h +++ b/menu/menu_cbs.h @@ -265,6 +265,9 @@ int action_scan_file(const char *path, int bind_right_generic(unsigned type, const char *label, bool wraparound); +int action_ok_core_option_dropdown_list(const char *path, + const char *label, unsigned type, size_t idx, size_t entry_idx); + /* This sets up all the callback functions for a menu entry. * * OK : When we press the 'OK' button on an entry.