fix(videoout): disable SDL DirectInput joystick enumeration on Windows #5580
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5580"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:14:46Z.
What
On Windows, SDL's DirectInput joystick enumeration blocks forever on machines with some vendor HID devices, so
SDL_InitSubSystem(VIDEO | GAMECONTROLLER)in theVideoOutDriverconstructor never returns andsceVideoOutOpenhangs. The constructor now setsSDL_HINT_DIRECTINPUT_ENABLEDto0atSDL_HINT_DEFAULTpriority before that call, so theSDL_DIRECTINPUT_ENABLEDenvironment variable still overrides it. XInput and HIDAPI controllers are still detected; controllers reachable only through DirectInput are not, recorded in the libSceVideoOut technical debt.Relands #1050 by @Tenith01 (their commit is kept as is, with the technical debt entry added as a second commit crediting them as co-author).
Fixes #1042
Tested
sceVideoOutOpenreturn andguest_video_out_wqhd_detectionpass, while the unpatched build hangs (https://github.com/boykopovar/AnyPS5/issues/1042#issuecomment-6093486423).BUILD_TESTING=ON: builds; the change is compiled only on Windows.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Based on main
feddf7f4c6.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T00:24:58Z.
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.
main)core/libs/prx/libSceVideoOut/src/VideoOutDriver.cppL261docs/dev/debt/libSceVideoOut.mdL25