equal
deleted
inserted
replaced
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. */ |