Some controllers have trouble getting out to 20000
parent
9d04205263
commit
1ddff75c70
|
@ -444,7 +444,7 @@ WatchJoystick(SDL_Joystick * joystick)
|
||||||
if (nCurrentDistance > nFarthestDistance) {
|
if (nCurrentDistance > nFarthestDistance) {
|
||||||
pAxisState->m_nFarthestValue = nValue;
|
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 */
|
/* We've gone out far enough and started to come back, let's bind this axis */
|
||||||
SDL_GameControllerExtendedBind binding;
|
SDL_GameControllerExtendedBind binding;
|
||||||
SDL_zero(binding);
|
SDL_zero(binding);
|
||||||
|
|
Loading…
Reference in New Issue