feat(input): configure stick deadzones and mouse sensitivity #4009
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4009"
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-11T21:14:38Z.
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.Replaces #2511, which the intake pause closed and GitHub won't reopen; the branch is rebased on current
main.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 Release build on0a8b1d32b:cmake --buildof everything succeeds with no warnings in the touched files;tools/check_test_registration.pyandpython3 tools/check_conventions.py --base origin/mainpass.ctest -R "pad_input_mapping|pad_sdl|patched_libraries": 3/3 pass.patched_librariesloads the patchedlibSceVideoOut.prx.pad_input_mappingtest (tests/InputMapping.cpp+src/InputMapping.cpp), which fails to build onmain(noPad::InputConfigurationorPad::StickWithDeadzone): 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 rustybusgaming on 2026-10-11T22:05:38Z.
Yeah nah mate