comparison src/haptic/win32/SDL_syshaptic.c @ 2594:3e59fe26671f gsoc2008_force_feedback

Changed EFFECT_TEST again for win32.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 10:39:37 +0000
parents e4729600607e
children 1dd8cf9614ad
comparison
equal deleted inserted replaced
2593:e4729600607e 2594:3e59fe26671f
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 (SDL_memcmp(&pei->guid,&(e),sizeof(GUID)==0)) \ 196 if ((pei->guid->Data1 == e.Data1) && \
197 (pei->guid->Data2 == e.Data2) && \
198 (pei->guid->Data3 == e.Data3) && \
199 (SDL_strcmp(pei->guid->Data4,e.Data4)==0) \
197 haptic->supported |= (s) 200 haptic->supported |= (s)
198 static BOOL CALLBACK 201 static BOOL CALLBACK
199 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv) 202 DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
200 { 203 {
201 /* Prepare the haptic device. */ 204 /* Prepare the haptic device. */