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.
This commit is contained in:
sowens99 2021-09-25 18:07:42 -04:00
parent 753a1595bf
commit 6fd54276ea
1 changed files with 10 additions and 2 deletions

View File

@ -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");
}