src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2592 8152dd46fbe2
parent 2591 07a19c1cc0a7
child 2593 e4729600607e
equal deleted inserted replaced
2591:07a19c1cc0a7 2592:8152dd46fbe2
   191 
   191 
   192 /*
   192 /*
   193  * Callback to get all supported effects.
   193  * Callback to get all supported effects.
   194  */
   194  */
   195 #define EFFECT_TEST(e,s)   \
   195 #define EFFECT_TEST(e,s)   \
   196 if (&pei->guid == &(e))      \
   196 if (SDL_memcmp(&pei->guid,&(e),sizeof(GUID)==0)      \
   197    haptic->supported |= (s)
   197    haptic->supported |= (s)
   198 static BOOL CALLBACK
   198 static BOOL CALLBACK
   199 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
   199 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
   200 {
   200 {
   201    /* Prepare the haptic device. */
   201    /* Prepare the haptic device. */