From 13f7672a7888914915ac1ea618bf116dd3c8803c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 4 Dec 2022 14:09:33 +1000 Subject: [PATCH] FullscreenUI: Allow using input button to clear bindings --- src/frontend-common/fullscreen_ui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index f04498769..038998eda 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -1328,7 +1328,8 @@ void FullscreenUI::DrawInputBindingButton(SettingsInterface* bsi, Controller::Co { BeginInputBinding(bsi, type, section, name, display_name); } - else if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) + else if (ImGui::IsItemClicked(ImGuiMouseButton_Right) || + ImGui::IsNavInputTest(ImGuiNavInput_Input, ImGuiNavReadMode_Pressed)) { bsi->DeleteValue(section, name); SetSettingsChanged(bsi);