Only build raw input support on Windows
authorSam Lantinga <slouken@libsdl.org>
Fri, 20 Mar 2020 19:42:59 -0700
changeset 13651ca9c225103c4
parent 13650 82e1e144c03b
child 13652 3797974f4ccf
Only build raw input support on Windows
Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
configure
configure.ac
     1.1 --- a/configure	Fri Mar 20 15:55:02 2020 -0700
     1.2 +++ b/configure	Fri Mar 20 19:42:59 2020 -0700
     1.3 @@ -24336,8 +24336,6 @@
     1.4  
     1.5  $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
     1.6  
     1.7 -$as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
     1.8 -
     1.9              EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
    1.10              SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
    1.11              SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
    1.12 @@ -24889,6 +24887,9 @@
    1.13  
    1.14                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
    1.15                  fi
    1.16 +
    1.17 +$as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
    1.18 +
    1.19              else
    1.20  
    1.21  $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
     2.1 --- a/configure.ac	Fri Mar 20 15:55:02 2020 -0700
     2.2 +++ b/configure.ac	Fri Mar 20 19:42:59 2020 -0700
     2.3 @@ -3316,7 +3316,6 @@
     2.4  
     2.5          if test x$hidapi_support = xyes; then
     2.6              AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
     2.7 -            AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
     2.8              EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
     2.9              SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
    2.10              SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
    2.11 @@ -3714,6 +3713,7 @@
    2.12                      AC_DEFINE(SDL_JOYSTICK_DINPUT, 1, [ ])
    2.13                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
    2.14                  fi
    2.15 +                AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
    2.16              else
    2.17                  AC_DEFINE(SDL_JOYSTICK_WINMM, 1, [ ])
    2.18              fi