mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
autotools: added windows.gaming.input.h (and SDL_JOYSTICK_WGI) detection
This commit is contained in:
19
configure
vendored
19
configure
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user