Skip to content

Commit

Permalink
Some controllers have trouble getting out to 20000
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2017
1 parent 9d04205 commit 1ddff75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllermap.c
Expand Up @@ -444,7 +444,7 @@ WatchJoystick(SDL_Joystick * joystick)
if (nCurrentDistance > nFarthestDistance) {
pAxisState->m_nFarthestValue = nValue;
}
if (nFarthestDistance >= 20000 && nCurrentDistance <= 10000) {
if (nFarthestDistance >= 16000 && nCurrentDistance <= 10000) {
/* We've gone out far enough and started to come back, let's bind this axis */
SDL_GameControllerExtendedBind binding;
SDL_zero(binding);
Expand Down

0 comments on commit 1ddff75

Please sign in to comment.