# HG changeset patch # User Edgar Simo # Date 1217520979 0 # Node ID 53bb7d21928d62cbbdd11d4ab9306b1ea1023f35 # Parent 806919b319d42380864843652406f5ab380a5011 Another patch for windows haptic. diff -r 806919b319d4 -r 53bb7d21928d src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Thu Jul 31 16:13:37 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Thu Jul 31 16:16:19 2008 +0000 @@ -32,7 +32,7 @@ #define WIN32_LEAN_AND_MEAN #include -#define DIRECTINPUT_VERSION 0x0500 +#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */ #include #include /* From DirectX SDK 9c */ #ifdef _MSC_VER @@ -189,9 +189,11 @@ /* * Callback to get all supported effects. */ +/* #define EFFECT_TEST(e,s) \ if (pei->guid == (e)) \ haptic->supported |= (s) +*/ static BOOL CALLBACK DI_EffectCallback(LPCDIEffectInfo pei, LPVOID pv) {