src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2646 9408be170bff
parent 2645 269ba4f28d0e
     1.1 --- a/src/haptic/SDL_haptic.c	Sun Aug 24 17:17:45 2008 +0000
     1.2 +++ b/src/haptic/SDL_haptic.c	Sun Aug 24 17:32:50 2008 +0000
     1.3 @@ -673,3 +673,16 @@
     1.4     return SDL_SYS_HapticUnpause(haptic);
     1.5  }
     1.6  
     1.7 +/*
     1.8 + * Stops all the currently playing effects.
     1.9 + */
    1.10 +int
    1.11 +SDL_HapticStopAll(SDL_Haptic * haptic)
    1.12 +{
    1.13 +   if (!ValidHaptic(haptic)) {
    1.14 +      return -1;
    1.15 +   }
    1.16 +
    1.17 +   return SDL_SYS_HapticStopAll(haptic);
    1.18 +}
    1.19 +