From c7780497dce964965080eba2c85975630215db9a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 4 Jan 2017 05:56:47 -0800 Subject: [PATCH] Increased joystick jitter tolerance for PS3 controllers --- src/joystick/SDL_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 5485cb2c4..e43a29742 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -634,7 +634,7 @@ int SDL_PrivateJoystickAxis(SDL_Joystick * joystick, Uint8 axis, Sint16 value) { int posted; - const int MAX_ALLOWED_JITTER = SDL_JOYSTICK_AXIS_MAX / 256; + const int MAX_ALLOWED_JITTER = SDL_JOYSTICK_AXIS_MAX / 80; /* ShanWan PS3 controller needed 96 */ /* Make sure we're not getting garbage or duplicate events */ if (axis >= joystick->naxes) {