Skip to content

Commit

Permalink
smooth out xinput directional animation
Browse files Browse the repository at this point in the history
  • Loading branch information
blueminder committed Jul 6, 2020
1 parent c5beeed commit b0b7e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nullDCNetplayLauncher/ControllerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public void XInputGamePadInputRoll(object sender, ActionEventArgs e)
System.Diagnostics.Debug.WriteLine("Right Pushed");
if (TestModeActivated)
{
var currentButton = TestMapping["Right"];
CurrentlyPressedButtons.Remove(TestMapping["Left"]);
CurrentlyPressedButtons.Add(TestMapping["Right"]);
}
else
Expand All @@ -472,6 +472,7 @@ public void XInputGamePadInputRoll(object sender, ActionEventArgs e)
System.Diagnostics.Debug.WriteLine("Left Pushed");
if (TestModeActivated)
{
CurrentlyPressedButtons.Remove(TestMapping["Right"]);
CurrentlyPressedButtons.Add(TestMapping["Left"]);
}
else
Expand All @@ -498,6 +499,7 @@ public void XInputGamePadInputRoll(object sender, ActionEventArgs e)
System.Diagnostics.Debug.WriteLine("Up Pushed");
if (TestModeActivated)
{
CurrentlyPressedButtons.Remove(TestMapping["Down"]);
CurrentlyPressedButtons.Add(TestMapping["Up"]);
}
else
Expand Down Expand Up @@ -526,6 +528,7 @@ public void XInputGamePadInputRoll(object sender, ActionEventArgs e)
System.Diagnostics.Debug.WriteLine("Down Pushed");
if (TestModeActivated)
{
CurrentlyPressedButtons.Remove(TestMapping["Up"]);
CurrentlyPressedButtons.Add(TestMapping["Down"]);
}
else
Expand Down

0 comments on commit b0b7e86

Please sign in to comment.