Skip to content

Add a radial stick dead zone option - #240

Open
Tororoi wants to merge 3 commits into
TheMoonPeople:masterfrom
Tororoi:feat/radial-dead-zone
Open

Tororoi wants to merge 3 commits into
TheMoonPeople:masterfrom
Tororoi:feat/radial-dead-zone

Conversation

@Tororoi

@Tororoi Tororoi commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Dead Zone option to the Controls page (input.dead_zone). It defaults to radial.

  • Radial (StickCalibration) measures the stick's tilt from the centre. It reads the larger of the two offsets with the game's own curve and gives each axis its share, so diagonals keep their angle. A push straight along an axis reads exactly as Axial does, on both sides of the centre.
  • Axial is the game's AxisCalibration. Each stick axis is zeroed on its own, within 49 above and 50 below the centre, and the rest is stretched over 128. Because the smaller axis falls inside its own dead zone, a push within about 23° of an axis reads as exactly on it.

The input layer already stretches a modern stick's circle onto the DualShock 2's square, keeping its direction. The tilt is therefore the larger of the two offsets, which keeps the dead zone round on the physical stick.

The option applies to both sticks on both pads (CGamePad::GetLX…GetRY2). The menus' pointer and the Options screen still call AxisCalibration directly.

Also:

  • The label, help and choices in the four shipped translations.
  • docs/PC.md: the key in the sample config, and a note under Gamepad sticks.

Tests:

  • PlatformConfig.ParsesMouseSettingsAndBindings: the default (radial), a round trip through axial, and a bad value, which keeps the default.
  • PlatformPad.RadialDeadZoneMeasuresFromTheCentre:
    • on an axis, either side of the centre, it matches Axial;
    • 15° off an axis it keeps the slant where Axial reads 0;
    • both axes just inside the dead zone read nothing;
    • a diagonal reads each axis as that axis alone would.
  • PlatformPad.AxesGoThroughCalibration now sets Axial itself, since it checks the game's per-axis curve.

input.dead_zone: original zeroes each stick axis on its own, as the game does; radial takes the
stick's tilt from the centre and scales it along the stick's direction, so a push near an axis
keeps its slant.
Radial now reads the larger offset with the game's own curve, so a push
along an axis reads exactly as Axial on both sides of the centre.
SirFancyBacon added a commit to SirFancyBacon/Chronicle that referenced this pull request Oct 30, 2026
@SirFancyBacon

Copy link
Copy Markdown
Contributor

Feels better is an understatement; This is much better than retail

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants