Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merge of force feedback branch r4039.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 25, 2008
1 parent 81a374e commit b68d1c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions configure.in
Expand Up @@ -2330,6 +2330,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
if test x$have_dinput = xyes; then
AC_DEFINE(SDL_JOYSTICK_DINPUT)
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8 -lole32"
else
AC_DEFINE(SDL_JOYSTICK_WINMM)
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c"
Expand Down
6 changes: 3 additions & 3 deletions src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -34,11 +34,11 @@

#define DIRECTINPUT_VERSION 0x0700 /* Need at least DirectX 7 for dwStartDelay */
#include <dinput.h>
#include <dxerr.h>
#include <dxerr8.h>
#ifdef _MSC_VER
# pragma comment (lib, "dinput8.lib")
# pragma comment (lib, "dxguid.lib")
# pragma comment (lib, "dxerr.lib")
# pragma comment (lib, "dxerr8.lib")
#endif /* _MSC_VER */

/* an ISO hack for VisualC++ */
Expand Down Expand Up @@ -123,7 +123,7 @@ static void
DI_SetError(const char *str, HRESULT err)
{
SDL_SetError("Haptic: %s - %s: %s", str,
DXGetErrorString(err), DXGetErrorDescription(err));
DXGetErrorString8A(err), DXGetErrorDescription8A(err));
}


Expand Down
2 changes: 1 addition & 1 deletion src/joystick/win32/SDL_dxjoystick.c
Expand Up @@ -85,7 +85,7 @@ static void
SetDIerror(const char *function, HRESULT code)
{
SDL_SetError("%s() [%s]: %s", function,
DXGetErrorString(code), DXGetErrorDescription(code));
DXGetErrorString8A(code), DXGetErrorDescription8A(code));
}


Expand Down
4 changes: 2 additions & 2 deletions src/joystick/win32/SDL_dxjoystick_c.h
Expand Up @@ -42,9 +42,9 @@
/* Used for the c_dfDIJoystick2 symbol (no imports are used) */
# pragma comment (lib, "dinput.lib")
#endif
#include <dxerr.h>
#include <dxerr8.h>
#ifdef _MSC_VER
# pragma comment (lib, "dxerr.lib")
# pragma comment (lib, "dxerr8.lib")
#endif


Expand Down

0 comments on commit b68d1c9

Please sign in to comment.