src/haptic/SDL_haptic.c
changeset 12304 27ba030d839f
parent 12060 c5ea08c1b9b6
child 12462 b57435750c5b
equal deleted inserted replaced
12299:d8683d6ff2f8 12304:27ba030d839f
   387  * Cleans up after the subsystem.
   387  * Cleans up after the subsystem.
   388  */
   388  */
   389 void
   389 void
   390 SDL_HapticQuit(void)
   390 SDL_HapticQuit(void)
   391 {
   391 {
       
   392     while (SDL_haptics) {
       
   393         SDL_HapticClose(SDL_haptics);
       
   394     }
       
   395 
   392     SDL_SYS_HapticQuit();
   396     SDL_SYS_HapticQuit();
   393     SDL_assert(SDL_haptics == NULL);
       
   394     SDL_haptics = NULL;
       
   395 }
   397 }
   396 
   398 
   397 /*
   399 /*
   398  * Returns the number of effects a haptic device has.
   400  * Returns the number of effects a haptic device has.
   399  */
   401  */