comparison src/haptic/win32/SDL_syshaptic.c @ 2595:1dd8cf9614ad gsoc2008_force_feedback

GUID is not a pointer as I thought.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 10:40:45 +0000
parents 3e59fe26671f
children b4be02fc05e4
comparison
equal deleted inserted replaced
2594:3e59fe26671f 2595:1dd8cf9614ad
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->Data1 == e.Data1) && \ 196 if ((pei->guid.Data1 == e.Data1) && \
197 (pei->guid->Data2 == e.Data2) && \ 197 (pei->guid.Data2 == e.Data2) && \
198 (pei->guid->Data3 == e.Data3) && \ 198 (pei->guid.Data3 == e.Data3) && \
199 (SDL_strcmp(pei->guid->Data4,e.Data4)==0) \ 199 (SDL_strcmp(pei->guid.Data4,e.Data4)==0) \
200 haptic->supported |= (s) 200 haptic->supported |= (s)
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. */