Fixed to match the docs

This commit is contained in:
Sam Lantinga 2006-01-27 06:36:33 +00:00
parent 39ab0b3e3e
commit b5c719c730

View File

@ -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;