From 3b7bea875eaa607bd50bac8ce1d81a797b1f6166 Mon Sep 17 00:00:00 2001 From: sonninnos Date: Fri, 20 Jun 2025 17:35:17 +0300 Subject: [PATCH] Log also analogs in SET_INPUT_DESCRIPTORS --- runloop.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/runloop.c b/runloop.c index 128255ee7b..f84d2e286d 100644 --- a/runloop.c +++ b/runloop.c @@ -2110,7 +2110,7 @@ bool runloop_environment_cb(unsigned cmd, void *data) } } - RARCH_LOG("[Environ]: SET_INPUT_DESCRIPTORS:\n"); + RARCH_LOG("[Environ]: SET_INPUT_DESCRIPTORS.\n"); { unsigned log_level = settings->uints.libretro_log_level; @@ -2137,6 +2137,19 @@ bool runloop_environment_cb(unsigned cmd, void *data) msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B + bind_index), description); } + + for (retro_id = RARCH_FIRST_CUSTOM_BIND; retro_id < RARCH_ANALOG_BIND_LIST_END; retro_id++) + { + unsigned bind_index = input_config_bind_order[retro_id]; + const char *description = sys_info->input_desc_btn[mapped_port][bind_index]; + + if (!description) + continue; + + RARCH_DBG(" \"%s\" => \"%s\"\n", + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS + bind_index - RARCH_FIRST_CUSTOM_BIND), + description); + } } } }