feat(input): add native SDL input configuration with ImGui #674
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/674"
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 clevetdev on 2026-10-05T14:10:53Z.
What
Add a native Dear ImGui input editor for #392, available as
anyps5-input-config [--config path]and a separate F10 window during gameplay. The editor supports keyboard/mouse alternate bindings, GUID-scoped PS5 button/axis profiles with inversion and analog previews, and a confirmed physical SDL mapping assistant for unrecognized joysticks.Keep existing keyboard INI behavior; add
NONEfor disabled bindings and numeric SDL scancodes for key names that cannot round-trip through the comment syntax. Save each tab atomically, apply saved mappings live, and neutralize game input while the editor is open. Use the SDL software renderer independently of the game's Vulkan renderer. Package the tool for Windows and Linux.This implements hardBSDk's native preference. I acknowledge the maintainer's proposed GitHub Pages direction in the issue; this contribution deliberately provides a native alternative. The shared sampler preserves the non-PlayStation Back/View touchpad behavior requested by hamb3r in #593, including a center contact when no real finger is available. Explicit TouchPad remapping or NONE overrides the default fallback; PS4/PS5 Share/Create stays separate.
Tested
libssucceed.961acb0c: 288/290 pass.agc_driver_f32_output_modifierandagc_driver_scalar_sop1fail on the RTX 5070 Ti; both fail identically on a separate, unmodified checkout of961acb0c. The newly registered packaging test also passes.4173f317in the fork CI run. Upstream PR workflows require maintainer approval for this first-time contribution.Integration with open pull requests
Rebased onto upstream
9cafa33fafter #593 landed. The prior audit compared all 130 open PRs and inspected the five sharing changed files. No merge of an unrelated PR is required first.PadInput.cppintegration conflict is resolved. Preserve its Back/View button and synthetic touch contact inInputConfig::SampleController, without an unconditional second fallback that would ignore explicit profiles. Virtual generic/PS4/PS5 tests cover defaults, reassignment, NONE, release, real finger preservation, and runtime publication/suspension. Original View/contact behavior and integration feedback are credited to hamb3r.Local validation after the rebase: full Windows build and patched
libstarget succeed; six input-related CTest cases passed three consecutive times with official Windows GCC 15.2.0. Full CTest is 321/323; the same two RTX 5070 Ti GPU failures retain the exact previously reproduced mismatches (0x7f7fffffvs0x7f800000,0x00007fffvs0xd4cbd76d). Linux/Windows full-build, patched libraries and test run passed on both platforms for8986feef(323 tests, repeated three times). After integrating the merged #593, WindowslibSceVideoOutbuilds and eight input/pad tests pass three consecutive times. Full CI passes on rebased commit318fa88d: Linux and Windows full builds, patched libraries and all 342 tests pass, repeated three times.Checklist
main; no other open PR implements this native editor (integration with overlapping PRs documented above)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T15:50:24Z.
Thanks for the work and for documenting the overlaps. This needs a decision from the maintainers before a detailed review, so tagging them:
@boykopovar @oneandonlydean
3rdparty/imgui(Dear ImGui v1.92.5) as a submodule, built from source into a newanyps5_input_editortarget.CMakeLists.txtflipsSDL_RENDER OFF -> ONfor the whole SDL build.release.ymlnow requires and uploads two extra assets (anyps5-input-config-<tag>[.exe]). #600 is already waiting on a release-layout decision and touches the same workflow andpackage_release.py.@clevetdev, independent of the decision:
libSceVideoOut/CMakeLists.txt). List them under Depends on.PadInputrefactor intoInputConfig::SampleController+ shared keyboard/controller config and tests, (2) the ImGui editor and F10 window, (3) release packaging. That keeps each piece reviewable and the packaging piece can follow whatever #600 ends up doing.Pull request closed