feat(pad): map Xbox View button to PS5 touchpad #593
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/593"
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 hamb3r on 2026-10-05T00:11:33Z.
What
Controllers other than DualShock 4 and DualSense lack a dedicated touchpad button, leaving players with Xbox or generic controllers unable to trigger game actions bound to the PS5 Touchpad (such as opening maps, journals or menus).
Maps
SDL_CONTROLLER_BUTTON_BACK(the View button on Xbox controllers) toPadButton::TouchPadfor non-PlayStation controllers. PlayStation controllers (DualShock 4 and DualSense) already expose their physical touchpad click separately and report Share/Create as BACK, so their behavior remains unchanged.Ported from OverkillLabs2/SoS-PS5#16 by @saulob.
Tested
Windows 10 / 11, AMD Ryzen 7 7700, NVIDIA GeForce RTX 3080. Tested with God of War: Sons of Sparta (PPSA28997) using an Xbox controller: View button consistently opens the in-game Map/Journal, matching native PS5 Touchpad behavior. Start continues to open Options/Menu. Built with MinGW-w64 GCC 15.2.0.
git diff --checkis clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T01:18:39Z.
Thanks, mapping View to the touchpad button for non-PlayStation controllers makes sense, and DualShock 4 and DualSense keep their own touchpad click.
One thing: this sets only the touchpad button bit, with no touch contact. On the console a touchpad click always comes with a contact, and main's keyboard bindings already follow that:
TouchLeft/TouchRightset the button together with a contact on the left or right half (PadState.cpp,touch_data_touch0_x480 or 1440). A title that reads where the click was would see a click with no finger. Could View go through the same path, for example by settingtouchLeft(or a contact in the middle)?PadInput::publishbuilds the published state field by field and doesn't copytouchLeftfrom the controller state, so it needs setting there or a contact added toresult.touch.PPSA21564 runs with a DualSense here, so this doesn't change anything in my runs. The CI run still needs workflow approval.
Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-05T13:39:23Z.
@oneandonlydean Implemented the touch-contact follow-up in
aad1be52.For non-PlayStation controllers, the View button still maps to the PS5 touchpad button. When SDL reports no real touch contact, we now add one synthetic contact at the center of the touchpad (
960, 471). Existing real touch contacts are preserved.Added regression coverage for the published touch state. Local checks passed:
guest_pad,pad_sdl, and thelibSceVideoOuttarget. The implementation commit passed Linux and Windows CI. Follow-up commitca2cbc29only removes an explanatory code comment that conflicted with the repository coding conventions; its CI run is in progress.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T15:47:30Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceVideoOut/src/PadInput.cppL123-162, L176-187Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-05T20:19:49Z.
@oneandonlydean The requested touch-contact fix is implemented in
ca2cbc29and is ready for review.PR #674 refactors PadInput::sampleController() into InputConfig::SampleController(). Please preserve PR #593's non-PlayStation SDL_CONTROLLER_BUTTON_BACK -> TouchPad mapping and synthetic touch contact when integrating it. This is an integration conflict, not a dependency, so #593 remains Depends on: none.