src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2597 79e3b1a2c590
parent 2596 b4be02fc05e4
child 2598 5b8f8151e66d
equal deleted inserted replaced
2596:b4be02fc05e4 2597:79e3b1a2c590
   201 static BOOL CALLBACK
   201 static BOOL CALLBACK
   202 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
   202 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
   203 {
   203 {
   204    /* Prepare the haptic device. */
   204    /* Prepare the haptic device. */
   205    SDL_Haptic *haptic = (SDL_Haptic*) pv;
   205    SDL_Haptic *haptic = (SDL_Haptic*) pv;
   206    haptic->supported = 0;
       
   207 
   206 
   208    /* Get supported. */
   207    /* Get supported. */
   209    EFFECT_TEST(GUID_Spring,         SDL_HAPTIC_SPRING);
   208    EFFECT_TEST(GUID_Spring,         SDL_HAPTIC_SPRING);
   210    EFFECT_TEST(GUID_Damper,         SDL_HAPTIC_DAMPER);
   209    EFFECT_TEST(GUID_Damper,         SDL_HAPTIC_DAMPER);
   211    EFFECT_TEST(GUID_Inertia,        SDL_HAPTIC_INERTIA);
   210    EFFECT_TEST(GUID_Inertia,        SDL_HAPTIC_INERTIA);