include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2488 8e2bdbccf7ff
parent 2487 4c8e25ef2d97
child 2489 96adc8025331
     1.1 --- a/include/SDL_haptic.h	Tue Jul 01 16:42:12 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Tue Jul 01 18:35:05 2008 +0000
     1.3 @@ -241,6 +241,16 @@
     1.4  extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);
     1.5  
     1.6  /*
     1.7 + * Uploads an effect.  Can be used dynamically, although behaviour when
     1.8 + * dynamically changing direction may be strange.  Specifically the effect
     1.9 + * may reupload itself and start playing from the start.  You cannot change
    1.10 + * the type either when running UpdateEffect.
    1.11 + *
    1.12 + * Returns the id of the effect on success, -1 on failure.
    1.13 + */
    1.14 +extern DECLSPEC int SDL_HapticUpdateEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect * data);
    1.15 +
    1.16 +/*
    1.17   * Runs the haptic effect on it's assosciated haptic device.
    1.18   *
    1.19   * Returns 0 on success or -1 on failure.