feat(pad): assign controllers to stable player slots #18783
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18783"
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 MarcZX10 on 2026-11-12T08:41:29Z.
What
Assign SDL controllers to stable guest player slots using optional exact per-player SDL serial settings (
ANYPS5_PAD_PLAYER_1_SERIALthrough_4_SERIAL). Configured slots stay reserved while their controller is disconnected; other controllers use the first unreserved slot. Duplicate configured serials fail during pad input initialization. Controller serial logging is opt-in withANYPS5_PAD_LOG_CONTROLLER_SERIAL=1.Tested
Linux, Debian 12 x86_64. Built
pad_sdl_testson main ate911e78a7d365101942023a51c675a2433b2164fand candidate headaea6b3cc76c11e647036a20dff220b24ef5507d0, then ran the focusedpad_sdlCTest on both with QEMU's Haswell CPU profile, Xvfb, Mesa lavapipe andVK_LAYER_KHRONOS_validation1.4.335. Both runs passed; neither log reported a missing validation layer or a Vulkan VUID. SDL virtual controllers without serials verified that a reserved player slot remains available.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)