src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2474 3f80bf1528b4
parent 2472 3f73c88c9abb
child 2475 4b874e3a3a2c
equal deleted inserted replaced
2473:20730743769d 2474:3f80bf1528b4
   123          /* Skip to next haptic */ ;
   123          /* Skip to next haptic */ ;
   124       SDL_haptics[i] = haptic;
   124       SDL_haptics[i] = haptic;
   125    }
   125    }
   126    return haptic;
   126    return haptic;
   127 }
   127 }
       
   128 
       
   129 
       
   130 void
       
   131 SDL_HapticQuit(void)
       
   132 {
       
   133    SDL_numhaptics = 0;
       
   134 
       
   135    SDL_SYS_HapticQuit();
       
   136    if (SDL_haptics != NULL) {
       
   137       SDL_free(SDL_haptics);
       
   138       SDL_haptics = NULL;
       
   139    }
       
   140 }