Change to better test for dinput.h/HAVE_DINPUT_H#15978
Conversation
[sdl-ci-filter msvc-*] [sdl-ci-filter msys2-*] [sdl-ci-filter cygwin] [sdl-ci-filter ngage]
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
|
Checks for the four others above probably need the same massage |
I saw five places. Do you wish me to add another commit with the five places? |
I double checked and one was a mistake; unless check_cxx_source_compiles counts. I pushed the four places and that commit can just be ignored or I can remove it if it is not wanted. |
|
I meant the checks for d3d9.h, d3d11_1.h, ddraw.h and dsound.h above the dinput.h check. |
Okay, I forced pushed to remove the commit that was wrong. I have verified those four files exist on my PC. I will work on adding the tests for them. It will take some time my PC takes 15 minutes a build cycle. |
[sdl-ci-filter cygwin] [sdl-ci-filter msys2-*] [sdl-ci-filter msvc-*] [sdl-ci-filter ngage]
Changed the test for "dinput.h" to a test based on the "xinput.h" test.
Description
The simple test of "dinput.h" failed to work on Cygwin. This change fixes Cygwin and did not break Msys UCRT64 during my testing. And I verified that "windows.h" was needed under Cygwin.
I reversed the location change in response to a comment; That said "dinput (DirectInput) is part of DirectX".
Existing Issue(s)