From 20de162a550b491b13df4f6510bbfc016d286c74 Mon Sep 17 00:00:00 2001 From: Toastarrr <68636505+Toastarrr@users.noreply.github.com> Date: Wed, 18 Jan 2023 05:54:23 -0500 Subject: [PATCH] OSD: Fix invisible inputs OSD: Show all button inputs and their pressure when available --- pcsx2/Frontend/ImGuiOverlays.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/Frontend/ImGuiOverlays.cpp b/pcsx2/Frontend/ImGuiOverlays.cpp index 3c606daf2e..b710ba6314 100644 --- a/pcsx2/Frontend/ImGuiOverlays.cpp +++ b/pcsx2/Frontend/ImGuiOverlays.cpp @@ -530,8 +530,10 @@ void ImGuiManager::DrawInputsOverlay() { // buttons only shown when active const float value = static_cast(g_key_status.GetRawPressure(port, bind)) * (1.0f / 255.0f); - if (value >= 0.5f) + if (value == 1.0f) fmt::format_to(std::back_inserter(text), " {}", bi.name); + else if (value > 0.0f) + fmt::format_to(std::back_inserter(text), " {}: {:.2f}", bi.name, value); } break;