From 08d9dd87d6c2a125ebede3815bab2b46ca11476c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 27 Jan 2006 06:36:33 +0000 Subject: [PATCH] Fixed to match the docs --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index aa8700439..88b33b089 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -943,7 +943,7 @@ static __inline__ int EV_AxisCorrect(SDL_Joystick *joystick, int which, int valu } /* Clamp and return */ - if ( value < -32767 ) return -32767; + if ( value < -32768 ) return -32768; if ( value > 32767 ) return 32767; return value;