FullscreenUI: Allow unbinding a hotkey/controller with Triangle

Previously this wasn't possible with a controller, only the mouse.

Follow the same convention as other UI options (alternate action =
triangle/Y).
This commit is contained in:
Connor McLaughlin 2022-12-04 15:16:18 +10:00 committed by refractionpcsx2
parent d1891fc31c
commit bd97a7a216
1 changed files with 1 additions and 1 deletions

View File

@ -1265,7 +1265,7 @@ void FullscreenUI::DrawInputBindingButton(SettingsInterface* bsi, PAD::Controlle
{
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);