Skip to content

fix(videoout): disable blocking DirectInput enumeration by default - #2047

Closed
MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/fix-real-bug-20261009
Closed

MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/fix-real-bug-20261009

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What

Fixes #1042. Disable SDL DirectInput detection by default before SDL_InitSubSystem so a stalled HID device cannot block sceVideoOutOpen during controller enumeration. SDL's normal hint priority still respects an explicit SDL_DIRECTINPUT_ENABLED environment value, so users can opt back in. Document the default and add a regression assertion to the existing video-out test.

Tested

  • Linux, Release: built guest_video_out_wqhd_detection_tests and ran ctest -R '^guest_video_out_wqhd_detection$' successfully.
  • Repeated the same test with SDL_DIRECTINPUT_ENABLED=1; it passed and confirmed the explicit environment value is preserved.
  • The reported Windows HID-device hang cannot be reproduced in this Linux environment.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no new silent stubs
  • No notes, investigation files or images added to the repository
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@MarcZX10

MarcZX10 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing this duplicate after discovering the existing open DirectInput fixes #1050 and #1596. #1596 already includes the same default-off hint and the user documentation; no separate PR is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: SDL DirectInput enumeration in sceVideoOutOpen blocks forever on a HID device, so video out never opens

1 participant