src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2635 318e67011ad9
parent 2634 dbd63c419ba5
child 2644 ef0ba67154c1
equal deleted inserted replaced
2634:dbd63c419ba5 2635:318e67011ad9
   100       return -1;
   100       return -1;
   101    }
   101    }
   102 
   102 
   103    /* Convert supported features to SDL_HAPTIC platform-neutral features. */
   103    /* Convert supported features to SDL_HAPTIC platform-neutral features. */
   104    EV_TEST(FF_CONSTANT,   SDL_HAPTIC_CONSTANT);
   104    EV_TEST(FF_CONSTANT,   SDL_HAPTIC_CONSTANT);
   105    EV_TEST(FF_PERIODIC,   SDL_HAPTIC_SINE |
   105    EV_TEST(FF_SINE,       SDL_HAPTIC_SINE);
   106                           SDL_HAPTIC_SQUARE |
   106    EV_TEST(FF_SQUARE,     SDL_HAPTIC_SQUARE);
   107                           SDL_HAPTIC_TRIANGLE |
   107    EV_TEST(FF_TRIANGLE,   SDL_HAPTIC_TRIANGLE);
   108                           SDL_HAPTIC_SAWTOOTHUP |
   108    EV_TEST(FF_SAW_UP,     SDL_HAPTIC_SAWTOOTHUP);
   109                           SDL_HAPTIC_SAWTOOTHDOWN);
   109    EV_TEST(FF_SAW_DOWN,   SDL_HAPTIC_SAWTOOTHDOWN);
   110    EV_TEST(FF_RAMP,       SDL_HAPTIC_RAMP);
   110    EV_TEST(FF_RAMP,       SDL_HAPTIC_RAMP);
   111    EV_TEST(FF_SPRING,     SDL_HAPTIC_SPRING);
   111    EV_TEST(FF_SPRING,     SDL_HAPTIC_SPRING);
   112    EV_TEST(FF_FRICTION,   SDL_HAPTIC_FRICTION);
   112    EV_TEST(FF_FRICTION,   SDL_HAPTIC_FRICTION);
   113    EV_TEST(FF_DAMPER,     SDL_HAPTIC_DAMPER);
   113    EV_TEST(FF_DAMPER,     SDL_HAPTIC_DAMPER);
   114    EV_TEST(FF_INERTIA,    SDL_HAPTIC_INERTIA);
   114    EV_TEST(FF_INERTIA,    SDL_HAPTIC_INERTIA);