Repository navigation
Conversation
|
Has this been run on a machine that shows the hang? The Windows tests were skipped, and frankea offered on #1042 to test a change, so a confirmation there would do. Please also fill in the PR template and say which pads stop being detected without DirectInput. |
|
Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, On the reviewer's question, from SDL 2.33.0 source: with the hint off, |
adriadam10
left a comment
There was a problem hiding this comment.
Thanks. The change itself looks right (hint exists in the bundled SDL2, set before SDL_InitSubSystem, SDL_HINT_DEFAULT keeps the env override). What's missing before it can merge:
- Confirmation on a machine that actually hangs. @WifeInLantern's Windows run builds and passes
guest_video_out_wqhd_detection, but that machine doesn't reproduce #1042, so it doesn't show the hang is fixed. @frankea offered to test on #1042; please ask for a run with and without the change and post the result here. - It drops DirectInput-only devices (generic pads, wheels, flight sticks; XInput and HIDAPI pads stay). That is a behaviour change on Windows: add a line under the matching section of
docs/dev/TechnicalDebt.mdsaying so. - Fill in the PR template (
What,Testedwith OS and what was checked, the checklist includingAI-assisted:). "Verified syntax correctness" is not a test.
|
Tested on the machine that reproduces #1042 (Windows 11 10.0.26200, Ryzen 7 5800X, RTX 4090 driver 616.92, WinLibs GCC 15.2.0 r7, Release,
Not tested: a DirectInput-only pad, since none is connected here. The branch is 1320 commits behind Tested with AI assistance (Claude Code). |
Follow-up on the requested review itemsThe report from
My duplicate #2047 was closed in favor of this PR; it included a user-facing |
|
Ready to merge from my side, but the PR description fails the conventions check:
Please fill those template lines in (only you can answer AI-assisted); it merges once they pass. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
What
Disables SDL's DirectInput joystick backend on Windows (
SDL_HINT_DIRECTINPUT_ENABLED=0,SDL_HINT_DEFAULTpriority, so theSDL_DIRECTINPUT_ENABLEDenvironment variable still overrides it) beforeSDL_InitSubSystemin theVideoOutDriverconstructor. DirectInput enumeration blocks forever insceVideoOutOpenon machines with some vendor HID devices (Corsair iCUE, SteelSeries). XInput and HIDAPI pads stay; DirectInput-only devices are no longer detected (TechnicalDebt line added).Fixes #1042
Tested
guest_video_out_wqhd_detectionpasses in 0.25 s with this change; the unpatchedmainbuild hangs and times out at 20 s.guest_video_out_wqhd_detectionpasses (machine does not reproduce the hang).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)