Use SDL_hidapi.c instead of the platform specific hid.c implementations when libusb isn't available
parent
494af7a6e7
commit
de6397cfff
|
@ -24364,17 +24364,7 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
case "$host" in
|
SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
|
||||||
*-*-cygwin* | *-*-mingw32* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
|
|
||||||
;;
|
|
||||||
*-*-darwin* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/linux/hid.c"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
13
configure.ac
13
configure.ac
|
@ -3315,6 +3315,7 @@ AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[d
|
||||||
AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
|
AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
|
||||||
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
|
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
|
||||||
|
SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
|
||||||
|
|
||||||
if test x$have_libusb_h = xyes; then
|
if test x$have_libusb_h = xyes; then
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
|
||||||
|
@ -3342,17 +3343,7 @@ AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[d
|
||||||
AC_DEFINE_UNQUOTED(SDL_LIBUSB_DYNAMIC, "$libusb_lib", [ ])
|
AC_DEFINE_UNQUOTED(SDL_LIBUSB_DYNAMIC, "$libusb_lib", [ ])
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
case "$host" in
|
SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
|
||||||
*-*-cygwin* | *-*-mingw32* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
|
|
||||||
;;
|
|
||||||
*-*-darwin* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
SOURCES="$SOURCES $srcdir/src/hidapi/linux/hid.c"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue