Skip to content

Commit

Permalink
Merge pull request #10126 from malleoz/l-r-digital-input-display
Browse files Browse the repository at this point in the history
Include digital L and R buttons in Input Display
  • Loading branch information
leoetlino committed Oct 13, 2021
2 parents a9e2c85 + 6fd5427 commit dd936c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Source/Core/Core/Movie.cpp
Expand Up @@ -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");
}
Expand Down

0 comments on commit dd936c5

Please sign in to comment.