Enable HIDAPI by default

This commit is contained in:
Sam Lantinga 2020-11-21 11:25:26 -08:00
parent a94fe009c6
commit 120dc280ca
2 changed files with 5 additions and 5 deletions

6
configure vendored
View File

@ -24312,7 +24312,7 @@ CheckHIDAPI()
if test "${enable_hidapi+set}" = set; then : if test "${enable_hidapi+set}" = set; then :
enableval=$enable_hidapi; enableval=$enable_hidapi;
else else
enable_hidapi=no enable_hidapi=yes
fi fi
if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
@ -24778,7 +24778,7 @@ $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
# 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
case $ARCH in case $ARCH in
linux) linux|freebsd)
$as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
@ -24799,7 +24799,7 @@ $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
# Set up files for the haptic library # Set up files for the haptic library
if test x$enable_haptic = xyes; then if test x$enable_haptic = xyes; then
case $ARCH in case $ARCH in
linux) linux|freebsd)
if test x$use_input_events = xyes; then if test x$use_input_events = xyes; then
$as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h

View File

@ -3327,8 +3327,8 @@ CheckHIDAPI()
esac esac
AC_ARG_ENABLE(hidapi, AC_ARG_ENABLE(hidapi,
AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[default=no]]]), AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[default=yes]]]),
, enable_hidapi=no) , enable_hidapi=yes)
if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
if test x$skiplibusb = xyes; then if test x$skiplibusb = xyes; then
hidapi_support=yes hidapi_support=yes