Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Configure should try to use haptic on windows with directinput.

  • Loading branch information
bobbens committed Jul 31, 2008
1 parent 645458d commit 8e7c775c1cdbf167f288de492052842fb4a6f613
Showing with 10 additions and 2 deletions.
  1. +7 −0 configure.in
  2. +1 −0 include/SDL_config.h.in
  3. +2 −2 include/SDL_config_win32.h
@@ -2331,6 +2331,13 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
fi
have_joystick=yes
fi
if test x$enable_haptic = xyes; then
if test x$have_dinput = xyes; then
AC_DEFINE(SDL_HAPTIC_DINPUT)
SOURCES="$SOURCES $srcdir/src/haptic/win32/SDL_syshaptic.c"
have_haptic=yes
fi
fi
# Set up files for the cdrom library
if test x$enable_cdrom = xyes; then
AC_DEFINE(SDL_CDROM_WIN32)
@@ -219,6 +219,7 @@
#undef SDL_HAPTIC_DUMMY
#undef SDL_HAPTIC_LINUX
#undef SDL_HAPTIC_IOKIT
#undef SDL_HAPTIC_DINPUT

/* Enable various shared object loading systems */
#undef SDL_LOADSO_BEOS
@@ -141,8 +141,8 @@ typedef unsigned int uintptr_t;
#define SDL_JOYSTICK_DISABLED 1
#define SDL_HAPTIC_DUMMY 1
#else
#define SDL_JOYSTICK_WINMM 1
#define SDL_HAPTIC_DUMMY 1
#define SDL_JOYSTICK_DINPUT 1
#define SDL_HAPTIC_DINPUT 1
#endif

/* Enable various shared object loading systems */

0 comments on commit 8e7c775

Please sign in to comment.