comparison src/joystick/linux/SDL_sysjoystick.c @ 1275:4aa02c3e5e13

Fixed to match the docs
author Sam Lantinga <slouken@libsdl.org>
date Fri, 27 Jan 2006 06:36:33 +0000
parents cb5e1d0cad31
children 94643e9bad18
comparison
equal deleted inserted replaced
1274:4726fa79ede1 1275:4aa02c3e5e13
941 value *= correct->coef[2]; 941 value *= correct->coef[2];
942 value >>= 14; 942 value >>= 14;
943 } 943 }
944 944
945 /* Clamp and return */ 945 /* Clamp and return */
946 if ( value < -32767 ) return -32767; 946 if ( value < -32768 ) return -32768;
947 if ( value > 32767 ) return 32767; 947 if ( value > 32767 ) return 32767;
948 948
949 return value; 949 return value;
950 } 950 }
951 951