Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added support for joysticks on *BSD (thanks Wilbern!)
  • Loading branch information
slouken committed Feb 14, 2002
1 parent e5ed4d5 commit 69401d0
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 10 deletions.
15 changes: 6 additions & 9 deletions configure.in
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs.html
Expand Up @@ -16,6 +16,7 @@ <H2>
Major changes since SDL 1.0.0:
</H2>
<UL>
<LI> 1.2.4: Added support for joysticks on *BSD (thanks Wilbern!)
<LI> 1.2.4: Added a YUV overlay test program (thanks Jon!)
<LI> 1.2.4: Added support for building SDL for EPOC/SymbianOS 6.0
<LI> 1.2.4: Added support for Xi Graphics XME fullscreen extension
Expand Down
2 changes: 1 addition & 1 deletion src/joystick/Makefile.am
Expand Up @@ -5,7 +5,7 @@ noinst_LTLIBRARIES = libjoystick.la

# Define which subdirectories need to be built
SUBDIRS = @JOYSTICK_SUBDIRS@
DIST_SUBDIRS = dummy amigaos beos darwin linux macos win32
DIST_SUBDIRS = dummy amigaos beos bsd darwin linux macos win32

DRIVERS = @JOYSTICK_DRIVERS@

Expand Down
8 changes: 8 additions & 0 deletions src/joystick/bsd/Makefile.am
@@ -0,0 +1,8 @@

## Makefile.am for the BSD joystick driver for SDL

noinst_LTLIBRARIES = libjoystick_bsd.la
libjoystick_bsd_la_SOURCES = $(SRCS)

# The SDL joystick driver sources
SRCS = SDL_sysjoystick.c

0 comments on commit 69401d0

Please sign in to comment.