Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

More comments.

Disabled envelope on condition effects.
  • Loading branch information
bobbens committed Jul 18, 2008
1 parent e3ba821 commit 0dadc33eb76b78ac0fa5500c6aa42f4a4ce7d067
Showing with 6 additions and 1 deletion.
  1. +3 −0 include/SDL_haptic.h
  2. +3 −1 src/haptic/darwin/SDL_syshaptic.c
@@ -602,6 +602,9 @@ typedef struct SDL_HapticRamp {
* 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
@@ -558,11 +558,13 @@ SDL_SYS_ToFFEFFECT( SDL_Haptic * haptic, FFEFFECT * dest, SDL_HapticEffect * src
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;

0 comments on commit 0dadc33

Please sign in to comment.