comparison src/haptic/win32/SDL_syshaptic.c @ 2592:8152dd46fbe2 gsoc2008_force_feedback

Changed effect comparison a bit.
author Edgar Simo <bobbens@gmail.com>
date Mon, 04 Aug 2008 17:30:17 +0000
parents 07a19c1cc0a7
children e4729600607e
comparison
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. */