Skip to content

Commit

Permalink
Moved DirectInput joystick code to 1.3 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 21, 2006
1 parent bc90401 commit 8dcb78a
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 630 deletions.
Binary file modified VisualC.zip
Binary file not shown.
9 changes: 2 additions & 7 deletions configure.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2270,13 +2270,8 @@ case "$host" in
fi fi
# Set up files for the joystick library # Set up files for the joystick library
if test x$enable_joystick = xyes; then if test x$enable_joystick = xyes; then
if test x$have_directx = xyes; then AC_DEFINE(SDL_JOYSTICK_WINMM)
AC_DEFINE(SDL_JOYSTICK_DINPUT) SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c"
else
AC_DEFINE(SDL_JOYSTICK_WINMM)
SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c"
fi
have_joystick=yes have_joystick=yes
fi fi
# Set up files for the cdrom library # Set up files for the cdrom library
Expand Down
1 change: 0 additions & 1 deletion include/SDL_config.h.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@
#undef SDL_JOYSTICK_AMIGA #undef SDL_JOYSTICK_AMIGA
#undef SDL_JOYSTICK_BEOS #undef SDL_JOYSTICK_BEOS
#undef SDL_JOYSTICK_DC #undef SDL_JOYSTICK_DC
#undef SDL_JOYSTICK_DINPUT
#undef SDL_JOYSTICK_DUMMY #undef SDL_JOYSTICK_DUMMY
#undef SDL_JOYSTICK_IOKIT #undef SDL_JOYSTICK_IOKIT
#undef SDL_JOYSTICK_LINUX #undef SDL_JOYSTICK_LINUX
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_config_win32.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ typedef unsigned int uintptr_t;
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
#define SDL_JOYSTICK_DISABLED 1 #define SDL_JOYSTICK_DISABLED 1
#else #else
#define SDL_JOYSTICK_DINPUT 1 #define SDL_JOYSTICK_WINMM 1
#endif #endif


/* Enable various shared object loading systems */ /* Enable various shared object loading systems */
Expand Down
Loading

0 comments on commit 8dcb78a

Please sign in to comment.