# HG changeset patch
# User Edgar Simo <bobbens@gmail.com>
# Date 1216408563 0
# Node ID 688cad3f6090cf577ab7faef4e2b6d388301d8b0
# Parent  7f2a4c3872921801d587ebbb3fa67be7a2a550da
More comments.
Disabled envelope on condition effects.

diff -r 7f2a4c387292 -r 688cad3f6090 include/SDL_haptic.h
--- a/include/SDL_haptic.h	Fri Jul 18 18:58:47 2008 +0000
+++ b/include/SDL_haptic.h	Fri Jul 18 19:16:03 2008 +0000
@@ -602,6 +602,9 @@
  *  Neither delay, interval, attack_length nor fade_length support 
  *  SDL_HAPTIC_INFINITY.  Fade will also not be used since effect never ends.
  *
+ * Additionally, the SDL_HAPTIC_RAMP effect does not support a duration of
+ *  SDL_HAPTIC_INFINITY.
+ *
  * Common parts:
  * \code
  * // Replay - All effects have this
diff -r 7f2a4c387292 -r 688cad3f6090 src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 18:58:47 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 19:16:03 2008 +0000
@@ -558,11 +558,13 @@
             return -1;                
          }                            
                                       
-         /* Envelope */               
+         /* Envelope */
+/* TODO Check is envelope actually used.
          envelope->dwAttackLevel = CONVERT(hap_condition->attack_level);
          envelope->dwAttackTime = hap_condition->attack_length * 1000;
          envelope->dwFadeLevel = CONVERT(hap_condition->fade_level);
          envelope->dwFadeTime = hap_condition->fade_length * 1000;
+*/
 
          break;