fix(libSceVideoOut): disable legacy DirectInput enumeration on Windows #1596
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1596"
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 neuralsin on 2026-10-08T14:03:15Z.
Summary
On Windows systems with composite or virtual vendor HID devices (such as Corsair iCUE devices, SteelSeries headsets/mice, NZXT controllers, or ITE RGB controllers), SDL's DirectInput joystick enumeration in
sceVideoOutOpencan block indefinitely insideHidD_GetProductStringduringDirectInput8Create. Because every title opens video-out throughsceVideoOutOpen, titles fail to progress beyond initialization on affected systems.This sets
SDL_HINT_DIRECTINPUT_ENABLEDto"0"inVideoOutDriverandPadInputbefore initializingSDL_INIT_GAMECONTROLLER. Modern controllers (DualSense, DualShock 4, Xbox, and compatible pads) remain fully supported through SDL's XInput and HIDAPI backends without hanging on non-gamepad HID devices.Closes #1042.
Checklist
python tools/check_conventions.py --base origin/mainpad_sdl_tests,video_out_flip_tests)docs/user/INPUT_MAPPING.mdImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:50:56Z.
I checked this against open PR #1050, which changes the same Windows DirectInput hint for issue #1042. Please coordinate with that author/maintainers so only one PR carries this fix; #1050 already uses
SDL_SetHintWithPriority(..., SDL_HINT_DEFAULT), preserving the documentedSDL_DIRECTINPUT_ENABLEDenvironment override.One code detail: the
PadInput.cpphint appears redundant in the current call path.VideoOutDriverinitializesSDL_INIT_GAMECONTROLLERbeforePadInput::openFirstAvailableControlleris reached, so setting the hint inPadInputcannot affect that first initialization. If this PR is the one retained, please either remove that duplicate or show a call path where PadInput initializes the subsystem first. The docs addition is useful, but should state that DirectInput-only controllers may no longer be detected.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:08Z.
Closing: #1050 sets the same hint for #1042 and is waiting on a run on a machine that hangs. If you have such a machine, a result on #1050 would help.
Pull request closed