changeset 2532:688cad3f6090 gsoc2008_force_feedback

More comments. Disabled envelope on condition effects.
author Edgar Simo <bobbens@gmail.com>
date Fri, 18 Jul 2008 19:16:03 +0000
parents 7f2a4c387292
children 0c8cea99c4b8
files include/SDL_haptic.h src/haptic/darwin/SDL_syshaptic.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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;