comparison include/SDL_haptic.h @ 2488:8e2bdbccf7ff gsoc2008_force_feedback

Added SDL_HapticUpdateEffect().
author Edgar Simo <bobbens@gmail.com>
date Tue, 01 Jul 2008 18:35:05 +0000
parents 4c8e25ef2d97
children 96adc8025331
comparison
equal deleted inserted replaced
2487:4c8e25ef2d97 2488:8e2bdbccf7ff
239 * Returns the id of the effect on success, -1 on failure. 239 * Returns the id of the effect on success, -1 on failure.
240 */ 240 */
241 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect); 241 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);
242 242
243 /* 243 /*
244 * Uploads an effect. Can be used dynamically, although behaviour when
245 * dynamically changing direction may be strange. Specifically the effect
246 * may reupload itself and start playing from the start. You cannot change
247 * the type either when running UpdateEffect.
248 *
249 * Returns the id of the effect on success, -1 on failure.
250 */
251 extern DECLSPEC int SDL_HapticUpdateEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect * data);
252
253 /*
244 * Runs the haptic effect on it's assosciated haptic device. 254 * Runs the haptic effect on it's assosciated haptic device.
245 * 255 *
246 * Returns 0 on success or -1 on failure. 256 * Returns 0 on success or -1 on failure.
247 */ 257 */
248 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect); 258 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect);