Linux documentation was off, periodic does not imply all the individual effects. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Wed, 06 Aug 2008 17:11:09 +0000
branchgsoc2008_force_feedback
changeset 2635318e67011ad9
parent 2634 dbd63c419ba5
child 2636 57ac1594164e
Linux documentation was off, periodic does not imply all the individual effects.
src/haptic/linux/SDL_syshaptic.c
     1.1 --- a/src/haptic/linux/SDL_syshaptic.c	Wed Aug 06 15:39:08 2008 +0000
     1.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Wed Aug 06 17:11:09 2008 +0000
     1.3 @@ -102,11 +102,11 @@
     1.4  
     1.5     /* Convert supported features to SDL_HAPTIC platform-neutral features. */
     1.6     EV_TEST(FF_CONSTANT,   SDL_HAPTIC_CONSTANT);
     1.7 -   EV_TEST(FF_PERIODIC,   SDL_HAPTIC_SINE |
     1.8 -                          SDL_HAPTIC_SQUARE |
     1.9 -                          SDL_HAPTIC_TRIANGLE |
    1.10 -                          SDL_HAPTIC_SAWTOOTHUP |
    1.11 -                          SDL_HAPTIC_SAWTOOTHDOWN);
    1.12 +   EV_TEST(FF_SINE,       SDL_HAPTIC_SINE);
    1.13 +   EV_TEST(FF_SQUARE,     SDL_HAPTIC_SQUARE);
    1.14 +   EV_TEST(FF_TRIANGLE,   SDL_HAPTIC_TRIANGLE);
    1.15 +   EV_TEST(FF_SAW_UP,     SDL_HAPTIC_SAWTOOTHUP);
    1.16 +   EV_TEST(FF_SAW_DOWN,   SDL_HAPTIC_SAWTOOTHDOWN);
    1.17     EV_TEST(FF_RAMP,       SDL_HAPTIC_RAMP);
    1.18     EV_TEST(FF_SPRING,     SDL_HAPTIC_SPRING);
    1.19     EV_TEST(FF_FRICTION,   SDL_HAPTIC_FRICTION);