diff src/haptic/SDL_haptic.c @ 2474:3f80bf1528b4 gsoc2008_force_feedback

Properly quit the SDL_haptic subsystem. Added SDL_Haptic dummy driver.
author Edgar Simo <bobbens@gmail.com>
date Sun, 01 Jun 2008 18:46:51 +0000
parents 3f73c88c9abb
children 4b874e3a3a2c
line wrap: on
line diff
--- 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;
+   }
+}