From 1a6f6054c27aedc0fe172cc755e6801b23dd2e08 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 20 Mar 2020 19:51:54 -0700 Subject: [PATCH] Regenerated configure with configure.ac changes --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index d81855a0ab107..f9041f709f8ac 100755 --- a/configure +++ b/configure @@ -24232,6 +24232,10 @@ CheckHIDAPI() *-*-*bsd* ) onlylibusb=yes ;; + # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is + *-*-cygwin* | *-*-mingw32*) + userawinput=yes + ;; esac # Check whether --enable-hidapi was given. @@ -24336,8 +24340,11 @@ fi $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h + if test x$userawinput = xyes; then + $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h + fi EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi" SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"