Skip to content

Commit

Permalink
Specifically look for the SN30 instead of assuming SN30 when no direc…
Browse files Browse the repository at this point in the history
…tion is pressed.
  • Loading branch information
zoggins committed Jan 31, 2022
1 parent c2ab03c commit 85937c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readers/GamepadReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void Tick(object sender, EventArgs e)
outState.SetButton("down", pov[0] > OctantAngle(2) && pov[0] < OctantAngle(5));
outState.SetButton("left", pov[0] > OctantAngle(4) && pov[0] < OctantAngle(7));
}
else // For SN30
else if (_joystick.Information.ProductName == "8Bitdo SF30 Wireless Controller") // For SN30
{
outState.SetButton("up", (float)state.Y / RANGE == -1.0);
outState.SetButton("down", (float)state.Y / RANGE == 1.0);
Expand Down

0 comments on commit 85937c6

Please sign in to comment.