Skip to content

Commit

Permalink
Increased joystick jitter tolerance for PS3 controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2017
1 parent 1ddff75 commit c778049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -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) {
Expand Down

0 comments on commit c778049

Please sign in to comment.