FullscreenUI: Allow using input button to clear bindings

This commit is contained in:
Connor McLaughlin 2022-12-04 14:09:33 +10:00
parent 7d3ac98cc6
commit 13f7672a78
1 changed files with 2 additions and 1 deletions

View File

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