comparison 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
comparison
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 }