Make sure we go all the way back (within the XBox controller dead zone) to prevent accidentally binding axes inverted
This commit is contained in:
parent
df32741ff4
commit
899ab7a827
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue