Skip to content

Commit

Permalink
Closed bug #74
Browse files Browse the repository at this point in the history
Added DirectInput joystick code, contributed by Glenn Maynard.

This fixes a problem with the Windows Multimedia joystick driver
not showing all 6 axes on a GameCube controller converter, which
was donated by Jacob Kolding.
  • Loading branch information
slouken committed May 21, 2006
1 parent 59b3bfa commit bc90401
Show file tree
Hide file tree
Showing 7 changed files with 630 additions and 112 deletions.
Binary file modified VisualC.zip
Binary file not shown.
9 changes: 7 additions & 2 deletions configure.in
Expand Up @@ -2270,8 +2270,13 @@ case "$host" in
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
AC_DEFINE(SDL_JOYSTICK_WINMM)
SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
if test x$have_directx = xyes; then
AC_DEFINE(SDL_JOYSTICK_DINPUT)
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
fi
# Set up files for the cdrom library
Expand Down
1 change: 1 addition & 0 deletions include/SDL_config.h.in
Expand Up @@ -198,6 +198,7 @@
#undef SDL_JOYSTICK_AMIGA
#undef SDL_JOYSTICK_BEOS
#undef SDL_JOYSTICK_DC
#undef SDL_JOYSTICK_DINPUT
#undef SDL_JOYSTICK_DUMMY
#undef SDL_JOYSTICK_IOKIT
#undef SDL_JOYSTICK_LINUX
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_config_win32.h
Expand Up @@ -131,7 +131,7 @@ typedef unsigned int uintptr_t;
#ifdef _WIN32_WCE
#define SDL_JOYSTICK_DISABLED 1
#else
#define SDL_JOYSTICK_WINMM 1
#define SDL_JOYSTICK_DINPUT 1
#endif

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

0 comments on commit bc90401

Please sign in to comment.