comparison src/haptic/win32/SDL_syshaptic.c @ 2629:43a0416b3707 gsoc2008_force_feedback

Removed TODO. Fixed condition envelope behaviour.
author Edgar Simo <bobbens@gmail.com>
date Wed, 06 Aug 2008 10:48:35 +0000
parents 53dd30491c71
children a0845d7f4398
comparison
equal deleted inserted replaced
2628:bfbda6c656e5 2629:43a0416b3707
880 /* Direction. */ 880 /* Direction. */
881 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) { 881 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) {
882 return -1; 882 return -1;
883 } 883 }
884 884
885 /* Envelope */ 885 /* Envelope - Not actually supported by most CONDITION implementations. */
886 /* TODO Check is envelope actually used. 886 SDL_free(dest->lpEnvelope);
887 envelope->dwAttackLevel = CONVERT(hap_condition->attack_level); 887 dest->lpEnvelope = NULL;
888 envelope->dwAttackTime = hap_condition->attack_length * 1000;
889 envelope->dwFadeLevel = CONVERT(hap_condition->fade_level);
890 envelope->dwFadeTime = hap_condition->fade_length * 1000;
891 */
892 888
893 break; 889 break;
894 890
895 case SDL_HAPTIC_RAMP: 891 case SDL_HAPTIC_RAMP:
896 hap_ramp = &src->ramp; 892 hap_ramp = &src->ramp;