comparison src/haptic/win32/SDL_syshaptic.c @ 2597:79e3b1a2c590 gsoc2008_force_feedback

Fixed only supporting last effect.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 11:04:30 +0000
parents b4be02fc05e4
children 5b8f8151e66d
comparison
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);