Commit f3a0aca8 authored by Edgar Simo's avatar Edgar Simo

Merge of force feedback branch r4039.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403167
parent 0eeb8c92
...@@ -2330,6 +2330,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau ...@@ -2330,6 +2330,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
if test x$have_dinput = xyes; then if test x$have_dinput = xyes; then
AC_DEFINE(SDL_JOYSTICK_DINPUT) AC_DEFINE(SDL_JOYSTICK_DINPUT)
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c" SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8 -lole32"
else else
AC_DEFINE(SDL_JOYSTICK_WINMM) AC_DEFINE(SDL_JOYSTICK_WINMM)
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c" SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c"
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */ #define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
#include <dinput.h> #include <dinput.h>
#include <dxerr.h> #include <dxerr8.h>
#ifdef _MSC_VER #ifdef _MSC_VER
# pragma comment (lib, "dinput8.lib") # pragma comment (lib, "dinput8.lib")
# pragma comment (lib, "dxguid.lib") # pragma comment (lib, "dxguid.lib")
# pragma comment (lib, "dxerr.lib") # pragma comment (lib, "dxerr8.lib")
#endif /* _MSC_VER */ #endif /* _MSC_VER */
/* an ISO hack for VisualC++ */ /* an ISO hack for VisualC++ */
...@@ -123,7 +123,7 @@ static void ...@@ -123,7 +123,7 @@ static void
DI_SetError(const char *str, HRESULT err) DI_SetError(const char *str, HRESULT err)
{ {
SDL_SetError("Haptic: %s - %s: %s", str, SDL_SetError("Haptic: %s - %s: %s", str,
DXGetErrorString(err), DXGetErrorDescription(err)); DXGetErrorString8A(err), DXGetErrorDescription8A(err));
} }
......
...@@ -85,7 +85,7 @@ static void ...@@ -85,7 +85,7 @@ static void
SetDIerror(const char *function, HRESULT code) SetDIerror(const char *function, HRESULT code)
{ {
SDL_SetError("%s() [%s]: %s", function, SDL_SetError("%s() [%s]: %s", function,
DXGetErrorString(code), DXGetErrorDescription(code)); DXGetErrorString8A(code), DXGetErrorDescription8A(code));
} }
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
/* Used for the c_dfDIJoystick2 symbol (no imports are used) */ /* Used for the c_dfDIJoystick2 symbol (no imports are used) */
# pragma comment (lib, "dinput.lib") # pragma comment (lib, "dinput.lib")
#endif #endif
#include <dxerr.h> #include <dxerr8.h>
#ifdef _MSC_VER #ifdef _MSC_VER
# pragma comment (lib, "dxerr.lib") # pragma comment (lib, "dxerr8.lib")
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment