Increased joystick jitter tolerance for PS3 controllers
This commit is contained in:
parent
03a927b4e3
commit
c67ac27dc9
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ int
|
||||||
SDL_PrivateJoystickAxis(SDL_Joystick * joystick, Uint8 axis, Sint16 value)
|
SDL_PrivateJoystickAxis(SDL_Joystick * joystick, Uint8 axis, Sint16 value)
|
||||||
{
|
{
|
||||||
int posted;
|
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 */
|
/* Make sure we're not getting garbage or duplicate events */
|
||||||
if (axis >= joystick->naxes) {
|
if (axis >= joystick->naxes) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue