Another patch for windows haptic. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Thu, 31 Jul 2008 16:16:19 +0000
branchgsoc2008_force_feedback
changeset 257053bb7d21928d
parent 2569 806919b319d4
child 2571 6b29d9f267be
Another patch for windows haptic.
src/haptic/win32/SDL_syshaptic.c
     1.1 --- a/src/haptic/win32/SDL_syshaptic.c	Thu Jul 31 16:13:37 2008 +0000
     1.2 +++ b/src/haptic/win32/SDL_syshaptic.c	Thu Jul 31 16:16:19 2008 +0000
     1.3 @@ -32,7 +32,7 @@
     1.4  #define WIN32_LEAN_AND_MEAN
     1.5  #include <windows.h>
     1.6  
     1.7 -#define DIRECTINPUT_VERSION 0x0500
     1.8 +#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
     1.9  #include <dinput.h>
    1.10  #include <dxerr9.h>          /* From DirectX SDK 9c */
    1.11  #ifdef _MSC_VER
    1.12 @@ -189,9 +189,11 @@
    1.13  /*
    1.14   * Callback to get all supported effects.
    1.15   */
    1.16 +/*
    1.17  #define EFFECT_TEST(e,s)   \
    1.18  if (pei->guid == (e))      \
    1.19     haptic->supported |= (s)
    1.20 +*/
    1.21  static BOOL CALLBACK
    1.22  DI_EffectCallback(LPCDIEffectInfo pei, LPVOID pv)
    1.23  {