(Mouse/Touch) Core options - touching a core option or pressing

with the left mouse button on it will now show a dropdown
list
This commit is contained in:
twinaphex 2019-05-22 10:54:08 +02:00
parent 8d54a56371
commit 9a4bdf5cea
3 changed files with 5 additions and 2 deletions

View File

@ -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];

View File

@ -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,

View File

@ -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.