Mercurial > sdl-ios-xcode
comparison src/haptic/darwin/SDL_syshaptic.c @ 2532:688cad3f6090 gsoc2008_force_feedback
More comments.
Disabled envelope on condition effects.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 19:16:03 +0000 |
parents | 7f2a4c387292 |
children | 0c8cea99c4b8 |
comparison
equal
deleted
inserted
replaced
2531:7f2a4c387292 | 2532:688cad3f6090 |
---|---|
556 /* Direction. */ | 556 /* Direction. */ |
557 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) { | 557 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) < 0) { |
558 return -1; | 558 return -1; |
559 } | 559 } |
560 | 560 |
561 /* Envelope */ | 561 /* Envelope */ |
562 /* TODO Check is envelope actually used. | |
562 envelope->dwAttackLevel = CONVERT(hap_condition->attack_level); | 563 envelope->dwAttackLevel = CONVERT(hap_condition->attack_level); |
563 envelope->dwAttackTime = hap_condition->attack_length * 1000; | 564 envelope->dwAttackTime = hap_condition->attack_length * 1000; |
564 envelope->dwFadeLevel = CONVERT(hap_condition->fade_level); | 565 envelope->dwFadeLevel = CONVERT(hap_condition->fade_level); |
565 envelope->dwFadeTime = hap_condition->fade_length * 1000; | 566 envelope->dwFadeTime = hap_condition->fade_length * 1000; |
567 */ | |
566 | 568 |
567 break; | 569 break; |
568 | 570 |
569 case SDL_HAPTIC_RAMP: | 571 case SDL_HAPTIC_RAMP: |
570 hap_ramp = &src->ramp; | 572 hap_ramp = &src->ramp; |