feat(pad): add a Shake input that swings the reported motion while held #6353
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6353"
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 EdouardSence on 2026-10-15T12:53:51Z.
What
Astro Bot (PPSA21567) stops progressing at the Crash Site on current
mainunless the player has a controller with motion sensors. After the crash cutscene the title asks the player to shake the controller, with the DualSense half buried in the sand and a shake prompt in the corner. Keyboard players, and controllers without motion sensors, cannot answer that prompt: the keyboard path never reports motion. In a 20-minute keyboard run onmaind92a8dad3, the prompt was still up from 10 minutes in until the end.This adds a
Shakeinput action, bound to X by default and rebindable inanyps5-input.inilike the others. While it is held,KeyboardMouse::Composereports motion:ShakeHalfPeriodand the last advance time.Advancereports a change while the key is held, so the state keeps being published without a controller connected. When the key is up, a controller's own sensor data is used as before.docs/user/INPUT_MAPPING.mdlists the action and describes it.Tested
Linux (CachyOS, GCC), branch based on
main6ea62f9b4.pad_keyboard_mousecaseshake: a held X reports motion, the acceleration and angular velocity flip after one half period, and the motion stops after release.Advancereturns true while the key is held. Allpadtests pass (9/9).maind92a8dad3, it reaches the Crash Site and stays on the shake prompt from about 10 minutes to the end of the run.Not tested: titles that read only orientation or a specific shake axis, and a real controller held still while X is pressed.
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)Written by Claude (AI assistant) on a contributor's machine; Gemini ran the game. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T13:01:27Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceVideoOut/src/InputMapping.cppdocs/user/INPUT_MAPPING.mdcore/libs/prx/libScePad/include/InputMapping.hppcore/libs/prx/libScePad/include/PadInputTypes.hppcore/libs/prx/libSceVideoOut/src/InputMapping.cppdocs/user/INPUT_MAPPING.mdcore/libs/prx/libSceVideoOut/src/InputMapping.cppcore/libs/prx/libScePad/include/InputMapping.hppcore/libs/prx/libSceVideoOut/src/InputMapping.cppdocs/user/INPUT_MAPPING.md