Mercurial > sdl-ios-xcode
diff src/haptic/linux/SDL_syshaptic.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/linux/SDL_syshaptic.c Sun Jun 01 18:40:47 2008 +0000 +++ b/src/haptic/linux/SDL_syshaptic.c Sun Jun 01 18:46:51 2008 +0000 @@ -182,4 +182,17 @@ } +/* Clean up after system specific haptic stuff */ +void +SDL_SYS_HapticQuit(void) +{ + int i; + + for (i=0; SDL_hapticlist[i].fname != NULL; i++) { + SDL_free(SDL_hapticlist[i].fname); + } + SDL_hapticlist[0].fname = NULL; +} + + #endif /* SDL_HAPTIC_LINUX */