Mercurial > sdl-ios-xcode
diff include/SDL_haptic.h @ 2485:67978eea6d10 gsoc2008_force_feedback
Added SDL_HapticStopEffect().
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 01 Jul 2008 14:31:04 +0000 |
parents | 666472fd4cb0 |
children | 24dd8b8669fa |
line wrap: on
line diff
--- a/include/SDL_haptic.h Tue Jul 01 14:21:09 2008 +0000 +++ b/include/SDL_haptic.h Tue Jul 01 14:31:04 2008 +0000 @@ -245,7 +245,15 @@ extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect); /* - * Destroys a haptic effect on the device. + * Stops the haptic effect on it's assosciated haptic device. + * + * Returns 0 on success or -1 on failure. + */ +extern DECLSPEC int SDL_HapticStopEffect(SDL_Haptic * haptic, int effect); + +/* + * Destroys a haptic effect on the device. This will stop the effect if it's + * running. */ extern DECLSPEC void SDL_HapticDestroyEffect(SDL_Haptic * haptic, int effect);