From 69401d07b6b31e02478b0eea64054a0df62ce1bd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 14 Feb 2002 01:24:08 +0000 Subject: [PATCH] Added support for joysticks on *BSD (thanks Wilbern!) --- configure.in | 15 +- docs.html | 1 + src/joystick/Makefile.am | 2 +- src/joystick/bsd/Makefile.am | 8 + src/joystick/bsd/SDL_sysjoystick.c | 388 +++++++++++++++++++++++++++++ 5 files changed, 404 insertions(+), 10 deletions(-) create mode 100644 src/joystick/bsd/Makefile.am create mode 100644 src/joystick/bsd/SDL_sysjoystick.c diff --git a/configure.in b/configure.in index 0d3d57e14..5b61e8b3e 100644 --- a/configure.in +++ b/configure.in @@ -1452,10 +1452,9 @@ case "$target" in # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" #fi # Set up files for the joystick library - # (No joystick support yet) if test x$enable_joystick = xyes; then - JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" - JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" + JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" + JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then @@ -1504,10 +1503,9 @@ case "$target" in AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" fi # Set up files for the joystick library - # (No joystick support yet) if test x$enable_joystick = xyes; then - JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" - JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" + JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" + JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then @@ -1564,10 +1562,9 @@ case "$target" in SYSTEM_LIBS="$SYSTEM_LIBS -lossaudio" fi # Set up files for the joystick library - # (No joystick support yet) if test x$enable_joystick = xyes; then - JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" - JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" + JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" + JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then diff --git a/docs.html b/docs.html index 15bd1c00d..d1ba67d19 100644 --- a/docs.html +++ b/docs.html @@ -16,6 +16,7 @@

Major changes since SDL 1.0.0: