Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
More comments.
Browse files Browse the repository at this point in the history
Disabled envelope on condition effects.
  • Loading branch information
bobbens committed Jul 18, 2008
1 parent e3ba821 commit 0dadc33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/SDL_haptic.h
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -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;

Expand Down

0 comments on commit 0dadc33

Please sign in to comment.