src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2474 3f80bf1528b4
parent 2472 3f73c88c9abb
child 2475 4b874e3a3a2c
--- a/src/haptic/SDL_haptic.c	Sun Jun 01 18:40:47 2008 +0000
+++ b/src/haptic/SDL_haptic.c	Sun Jun 01 18:46:51 2008 +0000
@@ -125,3 +125,16 @@
    }
    return haptic;
 }
+
+
+void
+SDL_HapticQuit(void)
+{
+   SDL_numhaptics = 0;
+
+   SDL_SYS_HapticQuit();
+   if (SDL_haptics != NULL) {
+      SDL_free(SDL_haptics);
+      SDL_haptics = NULL;
+   }
+}