From 0dadc33eb76b78ac0fa5500c6aa42f4a4ce7d067 Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Fri, 18 Jul 2008 19:16:03 +0000 Subject: [PATCH] More comments. Disabled envelope on condition effects. --- include/SDL_haptic.h | 3 +++ src/haptic/darwin/SDL_syshaptic.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/SDL_haptic.h b/include/SDL_haptic.h index ec089a9a4..5ab012c06 100644 --- a/include/SDL_haptic.h +++ b/include/SDL_haptic.h @@ -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 diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index bb5fa0643..d31e0db82 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -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;