src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2518 07a5b225b9c9
parent 2517 37c13c12c878
child 2519 af9df9662807
equal deleted inserted replaced
2517:37c13c12c878 2518:07a5b225b9c9
   439  * Values above 32767 (for unsigned) are unspecified so we must clamp.
   439  * Values above 32767 (for unsigned) are unspecified so we must clamp.
   440  */
   440  */
   441 static int
   441 static int
   442 SDL_SYS_ToFFEffect( struct ff_effect * dest, SDL_HapticEffect * src )
   442 SDL_SYS_ToFFEffect( struct ff_effect * dest, SDL_HapticEffect * src )
   443 {
   443 {
   444    int i;
       
   445    SDL_HapticConstant *constant;
   444    SDL_HapticConstant *constant;
   446    SDL_HapticPeriodic *periodic;
   445    SDL_HapticPeriodic *periodic;
   447    SDL_HapticCondition *condition;
   446    SDL_HapticCondition *condition;
   448    SDL_HapticRamp *ramp;
   447    SDL_HapticRamp *ramp;
   449 
   448