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 2635 318e67011ad9
parent 2634 dbd63c419ba5
child 2636 57ac1594164e
Linux documentation was off, periodic does not imply all the individual effects.
src/haptic/linux/SDL_syshaptic.c
--- a/src/haptic/linux/SDL_syshaptic.c	Wed Aug 06 15:39:08 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Wed Aug 06 17:11:09 2008 +0000
@@ -102,11 +102,11 @@
 
    /* Convert supported features to SDL_HAPTIC platform-neutral features. */
    EV_TEST(FF_CONSTANT,   SDL_HAPTIC_CONSTANT);
-   EV_TEST(FF_PERIODIC,   SDL_HAPTIC_SINE |
-                          SDL_HAPTIC_SQUARE |
-                          SDL_HAPTIC_TRIANGLE |
-                          SDL_HAPTIC_SAWTOOTHUP |
-                          SDL_HAPTIC_SAWTOOTHDOWN);
+   EV_TEST(FF_SINE,       SDL_HAPTIC_SINE);
+   EV_TEST(FF_SQUARE,     SDL_HAPTIC_SQUARE);
+   EV_TEST(FF_TRIANGLE,   SDL_HAPTIC_TRIANGLE);
+   EV_TEST(FF_SAW_UP,     SDL_HAPTIC_SAWTOOTHUP);
+   EV_TEST(FF_SAW_DOWN,   SDL_HAPTIC_SAWTOOTHDOWN);
    EV_TEST(FF_RAMP,       SDL_HAPTIC_RAMP);
    EV_TEST(FF_SPRING,     SDL_HAPTIC_SPRING);
    EV_TEST(FF_FRICTION,   SDL_HAPTIC_FRICTION);