Skip to content

Commit fca24dd

Browse files
committed
Pad/OSD: Add Analog Light/Locked State Indicator
1 parent 86e3cf5 commit fca24dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pcsx2/ImGui/ImGuiOverlays.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,9 @@ __ri void ImGuiManager::DrawInputsOverlay(float scale, float margin, float spaci
689689

690690
const Pad::ControllerInfo& cinfo = pad->GetInfo();
691691
if (cinfo.icon_name)
692-
text.format("{} {}", cinfo.icon_name, slot + 1u);
692+
text.format("{}{}{} {} | ", cinfo.icon_name, pad->IsAnalogLightEnabled() ? ICON_FA_LIGHTBULB : "", pad->IsAnalogLocked() ? ICON_FA_LOCK : "", slot + 1u);
693693
else
694-
text.format("{} |", slot + 1u);
694+
text.format("{}{} {} | ", pad->IsAnalogLightEnabled() ? ICON_FA_LIGHTBULB : "", pad->IsAnalogLocked() ? ICON_FA_LOCK : "", slot + 1u);
695695

696696
for (u32 bind = 0; bind < static_cast<u32>(cinfo.bindings.size()); bind++)
697697
{
@@ -747,7 +747,7 @@ __ri void ImGuiManager::DrawInputsOverlay(float scale, float margin, float spaci
747747
if (bindings.empty())
748748
continue;
749749

750-
text.format("{} {} ", ICON_PF_USB, port + 1u);
750+
text.format("{} {} | ", ICON_PF_USB, port + 1u);
751751

752752
for (const InputBindingInfo& bi : bindings)
753753
{

0 commit comments

Comments
 (0)