From b9a7b81a1c61d0799898573b0da9771537e4d68b Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sun, 9 Jun 2024 04:44:57 -0400 Subject: [PATCH] feat: allow configuring menu accept/apply buttons --- assets/config_menu/controls.rml | 13 +++++++- assets/config_menu/graphics.rml | 2 +- assets/icons/Reset.svg | 1 + include/recomp_input.h | 8 ++++- include/zelda_config.h | 2 ++ src/game/config.cpp | 16 ++++++++++ src/game/input.cpp | 52 ++++++++++++++++++++----------- src/ui/ui_config.cpp | 54 ++++++++++++++++++++++++++++++--- src/ui/ui_renderer.cpp | 41 ++++++++++++++++--------- 9 files changed, 151 insertions(+), 38 deletions(-) create mode 100644 assets/icons/Reset.svg diff --git a/assets/config_menu/controls.rml b/assets/config_menu/controls.rml index ed6a466..3a8371e 100644 --- a/assets/config_menu/controls.rml +++ b/assets/config_menu/controls.rml @@ -41,7 +41,7 @@ data-for="input_bindings, i : inputs.array" data-event-mouseover="set_input_row_focus(i)" data-class-control-option--active="get_input_enum_name(i)==cur_input_row" - data-if="!input_device_is_keyboard || get_input_enum_name(i) != 'TOGGLE_MENU'" + data-if="!input_device_is_keyboard || (get_input_enum_name(i) != 'TOGGLE_MENU' && get_input_enum_name(i) != 'ACCEPT_MENU' && get_input_enum_name(i) != 'APPLY_MENU')" >