Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only build raw input support on Windows
  • Loading branch information
slouken committed Mar 21, 2020
1 parent b6eb09f commit c63bb51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Empty file modified Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj 100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions configure
Expand Up @@ -24336,8 +24336,6 @@ fi

$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h

$as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h

EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
Expand Down Expand Up @@ -24889,6 +24887,9 @@ $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h

EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
fi

$as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h

else

$as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -3316,7 +3316,6 @@ AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[d

if test x$hidapi_support = xyes; then
AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
Expand Down Expand Up @@ -3714,6 +3713,7 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
AC_DEFINE(SDL_JOYSTICK_DINPUT, 1, [ ])
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
fi
AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
else
AC_DEFINE(SDL_JOYSTICK_WINMM, 1, [ ])
fi
Expand Down

0 comments on commit c63bb51

Please sign in to comment.