mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-04-10 19:15:14 +00:00
FullscreenUI: Allow using input button to clear bindings
This commit is contained in:
parent
7d3ac98cc6
commit
13f7672a78
|
@ -1328,7 +1328,8 @@ void FullscreenUI::DrawInputBindingButton(SettingsInterface* bsi, Controller::Co
|
||||||
{
|
{
|
||||||
BeginInputBinding(bsi, type, section, name, display_name);
|
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);
|
bsi->DeleteValue(section, name);
|
||||||
SetSettingsChanged(bsi);
|
SetSettingsChanged(bsi);
|
||||||
|
|
Loading…
Reference in a new issue