More comments. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Fri, 18 Jul 2008 19:16:03 +0000
branchgsoc2008_force_feedback
changeset 2532 688cad3f6090
parent 2531 7f2a4c387292
child 2533 0c8cea99c4b8
More comments. Disabled envelope on condition effects.
include/SDL_haptic.h
src/haptic/darwin/SDL_syshaptic.c
--- 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;