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

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/2047 into main
MarcZX10 commented 2026-10-09 05:45:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:45:51Z.


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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4796522058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2047). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T05:45:51Z. --- ### 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 - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no new silent stubs - [x] No notes, investigation files or images added to the repository - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-09 05:47:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:47:22Z.


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075124030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2047#issuecomment-6075124030). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T05:47:22Z. --- 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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2047
No description provided.