Mercurial > sdl-ios-xcode
comparison src/haptic/darwin/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 | bfbda6c656e5 |
children | 9e7f58b1b255 |
comparison
equal
deleted
inserted
replaced
2628:bfbda6c656e5 | 2629:43a0416b3707 |
---|---|
763 /* Direction. */ | 763 /* Direction. */ |
764 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) { | 764 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) { |
765 return -1; | 765 return -1; |
766 } | 766 } |
767 | 767 |
768 /* Envelope */ | 768 /* Envelope - Not actually supported by most CONDITION implementations. */ |
769 SDL_free(dest->lpEnvelope); | 769 SDL_free(dest->lpEnvelope); |
770 dest->lpEnvelope = NULL; | 770 dest->lpEnvelope = NULL; |
771 /* TODO Check is envelope actually used. | |
772 envelope->dwAttackLevel = CCONVERT(hap_condition->attack_level); | |
773 envelope->dwAttackTime = hap_condition->attack_length * 1000; | |
774 envelope->dwFadeLevel = CCONVERT(hap_condition->fade_level); | |
775 envelope->dwFadeTime = hap_condition->fade_length * 1000; | |
776 */ | |
777 | 771 |
778 break; | 772 break; |
779 | 773 |
780 case SDL_HAPTIC_RAMP: | 774 case SDL_HAPTIC_RAMP: |
781 hap_ramp = &src->ramp; | 775 hap_ramp = &src->ramp; |