mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
FullscreenUI: Add footer for clear bindings
Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
parent
ad3f0fd6cd
commit
0f709735c0
@ -1841,6 +1841,25 @@ void FullscreenUI::DrawInputBindingButton(
|
||||
bsi->DeleteValue(section, name);
|
||||
SetSettingsChanged(bsi);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hovered)
|
||||
{
|
||||
if (ImGuiFullscreen::IsGamepadInputSource())
|
||||
{
|
||||
const bool swapNorthWest = ImGuiManager::IsGamepadNorthWestSwapped();
|
||||
ImGuiFullscreen::QueueFooterHint(std::array{
|
||||
std::make_pair(swapNorthWest ? ICON_PF_BUTTON_TRIANGLE : ICON_PF_BUTTON_SQUARE, FSUI_VSTR("Clear Binding")),
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGuiFullscreen::QueueFooterHint(std::array{
|
||||
std::make_pair(ICON_PF_RIGHT_CLICK, FSUI_VSTR("Clear Binding")),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FullscreenUI::ClearInputBindingVariables()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user