comparison 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
comparison
equal deleted inserted replaced
2484:666472fd4cb0 2485:67978eea6d10
243 * Returns 0 on success or -1 on failure. 243 * Returns 0 on success or -1 on failure.
244 */ 244 */
245 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect); 245 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect);
246 246
247 /* 247 /*
248 * Destroys a haptic effect on the device. 248 * Stops the haptic effect on it's assosciated haptic device.
249 *
250 * Returns 0 on success or -1 on failure.
251 */
252 extern DECLSPEC int SDL_HapticStopEffect(SDL_Haptic * haptic, int effect);
253
254 /*
255 * Destroys a haptic effect on the device. This will stop the effect if it's
256 * running.
249 */ 257 */
250 extern DECLSPEC void SDL_HapticDestroyEffect(SDL_Haptic * haptic, int effect); 258 extern DECLSPEC void SDL_HapticDestroyEffect(SDL_Haptic * haptic, int effect);
251 259
252 /* 260 /*
253 * Sets the global gain of the device. Gain should be between 0 and 100. 261 * Sets the global gain of the device. Gain should be between 0 and 100.