feat(input): configure stick deadzones and mouse sensitivity #2511
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2511"
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 dantdmdarealguy on 2026-10-10T00:15:11Z.
What
Adds three settings to
anyps5-input.ini, next to the existingAction = TYPE:VALUElines:LeftStickDeadzone/RightStickDeadzone: whole percent from 0 to 90 of a controller stick's travel that reads as centered. The deadzone is radial, and the travel outside it is rescaled so a full tilt (including a full diagonal) still reaches the edge, with no jump at the boundary. Keyboard and mouse stick bindings aren't affected. This helps worn sticks that drift.MouseSensitivity: a number above 0 and at most 10 that replaces the fixedPad::MouseSensitivity = 1.0factor for mouse look (ToggleMouse).Pad::StickWithDeadzonereturns the same bytes as the old per-axis conversion.Pad::LoadInputMappingnow returns the bindings together with the settings (Pad::InputConfiguration). Its only caller isPadInput.This doesn't overlap #674, which edits bindings and has no deadzone or sensitivity settings. It touches the same parser file, so whichever lands second may need a small rebase.
Tested
Windows 11, WinLibs GCC 15.2.0 (
15.2.0posix-14.0.0-ucrt-r7, as in CI), full build on1f0c9fef:cmake --build build,cmake --build build --target libsandtools/check_test_registration.pypass.ctest --parallel 4: 556/560 pass.video_out_flip_lifetimeandvideo_out_flip_controlsskip because SDL'soffscreendriver has no Vulkan here, andguest_video_out_wqhd_detection_no_vulkanskips as expected with a Vulkan device.hardware_oraclefails because theld.lldon my PATH (LLVM 18) rejects the AMDGPU object; it's unrelated to this change.patched_librariespasses, so the patchedlibSceVideoOut.prxloads.python3 tools/check_conventions.py --base origin/mainpasses.pad_input_mappingtest (tests/InputMapping.cpp+src/InputMapping.cpp): default settings; parsing alongside bindings and case-insensitive names; rejection of 91, -1, 7.5 and empty deadzones, of 0, 10.5 and non-numeric sensitivity, and of a setting given twice; a 0 deadzone matching the old byte conversion for -32768 to 32767; centering inside the deadzone; full, negative and diagonal deflection still reaching the edge; continuity just outside; rescaling in between.LeftStickDeadzone, and mouse look withMouseSensitivity.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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T00:15:22Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed