More comments. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Fri, 18 Jul 2008 19:16:03 +0000
branchgsoc2008_force_feedback
changeset 2532688cad3f6090
parent 2531 7f2a4c387292
child 2533 0c8cea99c4b8
More comments.
Disabled envelope on condition effects.
include/SDL_haptic.h
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/include/SDL_haptic.h	Fri Jul 18 18:58:47 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Fri Jul 18 19:16:03 2008 +0000
     1.3 @@ -602,6 +602,9 @@
     1.4   *  Neither delay, interval, attack_length nor fade_length support 
     1.5   *  SDL_HAPTIC_INFINITY.  Fade will also not be used since effect never ends.
     1.6   *
     1.7 + * Additionally, the SDL_HAPTIC_RAMP effect does not support a duration of
     1.8 + *  SDL_HAPTIC_INFINITY.
     1.9 + *
    1.10   * Common parts:
    1.11   * \code
    1.12   * // Replay - All effects have this
     2.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 18:58:47 2008 +0000
     2.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 19:16:03 2008 +0000
     2.3 @@ -558,11 +558,13 @@
     2.4              return -1;                
     2.5           }                            
     2.6                                        
     2.7 -         /* Envelope */               
     2.8 +         /* Envelope */
     2.9 +/* TODO Check is envelope actually used.
    2.10           envelope->dwAttackLevel = CONVERT(hap_condition->attack_level);
    2.11           envelope->dwAttackTime = hap_condition->attack_length * 1000;
    2.12           envelope->dwFadeLevel = CONVERT(hap_condition->fade_level);
    2.13           envelope->dwFadeTime = hap_condition->fade_length * 1000;
    2.14 +*/
    2.15  
    2.16           break;
    2.17