From 6fd54276eaf4172c552ced4d38ac65d9bf6726f8 Mon Sep 17 00:00:00 2001 From: sowens99 Date: Sat, 25 Sep 2021 18:07:42 -0400 Subject: [PATCH] Include digital L and R buttons in Input Display Previously, using TAS Input to activate the digital L and R buttons would not show these inputs in the Input Display. This commit adds the digital L and R presses to the Input Display, and also displays just "L" or "R" if the analog is set to 255. --- Source/Core/Core/Movie.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 31e8ca3b4352..077d0a0f66fb 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -648,8 +648,16 @@ static void SetInputDisplayString(ControllerState padState, int controllerID) if (padState.reset) display_str += " RESET"; - display_str += Analog1DToString(padState.TriggerL, " L"); - display_str += Analog1DToString(padState.TriggerR, " R"); + if (padState.TriggerL == 255 || padState.L) + display_str += " L"; + else + display_str += Analog1DToString(padState.TriggerL, " L"); + + if (padState.TriggerR == 255 || padState.R) + display_str += " R"; + else + display_str += Analog1DToString(padState.TriggerR, " R"); + display_str += Analog2DToString(padState.AnalogStickX, padState.AnalogStickY, " ANA"); display_str += Analog2DToString(padState.CStickX, padState.CStickY, " C"); }