feat(pad): support SDL controller button remapping #19538
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19538"
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 bipinkrish on 2026-11-13T13:59:22Z.
What
Add source-based controller remapping to
anyps5-input.ini. For example,SDLButton:a = CircleandSDLButton:b = Crossswap the two face buttons.Nonedisables a button. Per-title profiles and runtime reload use the existing input mapping snapshot. Controller overrides preserve keyboard and mouse bindings. ExistingPAD:chords use the resulting guest buttons.Part of #392. Edit these entries by hand after exporting from the browser configurator. A mixed INI import reports the unsupported line and preserves the current editor configuration.
Tested
Ubuntu 24.04.4 x86-64, GCC 13.3.0, Release. Ran
pad_input_mapping,pad_keyboard_mouse,pad_sdl,video_out_flip_controls, andvideo_out_flip_presentonmainat228330220baand this branch. The SDL virtual-controller test checks default and remapped buttons, a disabled button, full trigger output, synthesized touch, reload while held, rejected duplicate overrides and reload through a remappedPAD:chord.Ran the focused CTest comparison with Xvfb,
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer. Both logs show the Vulkan loader inserting Khronos validation 1.4.335 for both VideoOut tests. Both logs contain zero VUID errors and zero missing-layer diagnostics. All five tests passed on both revisions. A separate Node probe verified the browser parser rejectsSDLButton:lines and I confirmed its import handler returns before replacing the editor state.tools/check_conventions.pypassed against bothorigin/mainandupstream/main. The overlap tool scanned 1,506 open PRs and could not compare five older branches that already conflict with the base. I reviewed the shared diffs and did file-level three-way comparisons for #17596, #17625, #17712, #17717 and #17745. Their changes cover reload watching, mouse motion as gyro, or host menus. The shared files that already merged cleanly with main also merged cleanly with this change. The same comparison for #18783 combined cleanly.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)