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 New Issue