Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we go all the way back (within the XBox controller dead zon…
…e) to prevent accidentally binding axes inverted
  • Loading branch information
slouken committed Dec 27, 2016
1 parent cb8685c commit 21cb42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllermap.c
Expand Up @@ -413,7 +413,7 @@ WatchJoystick(SDL_Joystick * joystick)
if (nCurrentDistance > nFarthestDistance) {
pAxisState->m_nFarthestValue = nValue;
}
if (nCurrentDistance < 10000 && nFarthestDistance > 20000) {
if (nCurrentDistance <= 8000 && nFarthestDistance >= 20000) {
/* We've gone out and back, let's bind this axis */
SDL_GameControllerExtendedBind binding;
SDL_zero(binding);
Expand Down

0 comments on commit 21cb42d

Please sign in to comment.