autotools: added windows.gaming.input.h (and SDL_JOYSTICK_WGI) detection

This commit is contained in:
Ozkan Sezer
2021-11-03 20:35:20 +03:00
parent 2371b247ff
commit 802e17aad9
3 changed files with 29 additions and 2 deletions

19
configure vendored
View File

@@ -24071,6 +24071,18 @@ $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
fi
fi
ac_fn_c_check_header_mongrel "$LINENO" "windows.gaming.input.h" "ac_cv_header_windows_gaming_input_h" "$ac_includes_default"
if test "x$ac_cv_header_windows_gaming_input_h" = xyes; then :
have_wgi=yes
fi
if test x$have_wgi = xyes; then
$as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
fi
ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
have_wasapi=yes
@@ -25238,11 +25250,16 @@ $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
$as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
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
$as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
fi
if test x$have_wgi = xyes; then
$as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
fi
if test x$have_dinput = xyes; then