src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2570 53bb7d21928d
parent 2569 806919b319d4
child 2571 6b29d9f267be
--- 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 <windows.h>
 
-#define DIRECTINPUT_VERSION 0x0500
+#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
 #include <dinput.h>
 #include <dxerr9.h>          /* 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)
 {