src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2517 37c13c12c878
parent 2515 030fc4375e63
child 2519 af9df9662807
     1.1 --- a/src/haptic/SDL_haptic.c	Thu Jul 10 17:52:57 2008 +0000
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Jul 10 17:54:08 2008 +0000
     1.3 @@ -470,14 +470,14 @@
     1.4   * Runs the haptic effect on the device.
     1.5   */
     1.6  int
     1.7 -SDL_HapticRunEffect(SDL_Haptic * haptic, int effect)
     1.8 +SDL_HapticRunEffect(SDL_Haptic * haptic, int effect, int iterations)
     1.9  {
    1.10     if (!ValidHaptic(&haptic) || !ValidEffect(haptic,effect)) {
    1.11        return -1;
    1.12     }
    1.13  
    1.14     /* Run the effect */
    1.15 -   if (SDL_SYS_HapticRunEffect(haptic,&haptic->effects[effect]) < 0) {
    1.16 +   if (SDL_SYS_HapticRunEffect(haptic,&haptic->effects[effect], iterations) < 0) {
    1.17        return -1;
    1.18     }
    1.19