autotools: added windows.gaming.input.h (and SDL_JOYSTICK_WGI) detection
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -3199,6 +3199,11 @@ XINPUT_STATE_EX s1;
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADER(windows.gaming.input.h, have_wgi=yes)
|
||||
if test x$have_wgi = xyes; then
|
||||
AC_DEFINE(HAVE_WINDOWS_GAMING_INPUT_H, 1, [ ])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
|
||||
if test x$have_wasapi = xyes; then
|
||||
AC_DEFINE(HAVE_MMDEVICEAPI_H, 1, [ ])
|
||||
@@ -3846,10 +3851,13 @@ case "$host" in
|
||||
# Set up files for the joystick library
|
||||
if test x$enable_joystick = xyes; then
|
||||
AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
|
||||
if test x$have_dinput = xyes -o x$have_xinput = xyes; then
|
||||
if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
|
||||
if test x$have_xinput = xyes; then
|
||||
AC_DEFINE(SDL_JOYSTICK_XINPUT, 1, [ ])
|
||||
fi
|
||||
if test x$have_wgi = xyes; then
|
||||
AC_DEFINE(SDL_JOYSTICK_WGI, 1, [ ])
|
||||
fi
|
||||
if test x$have_dinput = xyes; then
|
||||
AC_DEFINE(SDL_JOYSTICK_DINPUT, 1, [ ])
|
||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
|
||||
|
||||
Reference in New Issue
Block a user