# HG changeset patch # User Sam Lantinga # Date 1138343793 0 # Node ID 4aa02c3e5e131add92a2d71b4e09ec80d32d9242 # Parent 4726fa79ede1c2198bfb8bfed1609f63523a7de8 Fixed to match the docs diff -r 4726fa79ede1 -r 4aa02c3e5e13 src/joystick/linux/SDL_sysjoystick.c --- a/src/joystick/linux/SDL_sysjoystick.c Fri Jan 27 05:36:47 2006 +0000 +++ b/src/joystick/linux/SDL_sysjoystick.c Fri Jan 27 06:36:33 2006 +0000 @@ -943,7 +943,7 @@ } /* Clamp and return */ - if ( value < -32767 ) return -32767; + if ( value < -32768 ) return -32768; if ( value > 32767 ) return 32767; return value;