Add optional dead zone for gamepad sticks (VICTORY_PAD_DEADZONE) #14
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
reviewed
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Slaktarn700--SlaktarnVI!14
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-14"
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?
@pmaho on GitHub · 2026-11-28 21:36 UTC · original
pmaho:pad-deadzone-fix→main· +33 −2 · 1 files · 1 commits · closed without mergingWhat this does
Applies a configurable dead-zone rescale to raw gamepad stick axes so stick rest offset (drift) is silenced while full deflection is still reached at the edge of travel. Default dead zone is 0.10; set the
VICTORY_PAD_DEADZONEenvironment variable to change it.Changed file
crates/victory-hle/src/modules/gameinput.rs(only file touched)Tests
pad_deadzone_silences_rest_offset_and_preserves_full_deflectionWindows release build compiles (cargo xwin); unit suite: new test passes; 3 pre-existing wine-timing tests fail on base too (lifecycle x2, xmem x1); native Linux
cargo testdoes not compile on base either. Not yet tested in a long in-game session upstream.@Slaktarn700 on GitHub · 2026-11-29 11:17 UTC · original
Thank you. I took it into my working copy with two changes: off unless
VICTORY_PAD_DEADZONEis set, and more tests.@Slaktarn700 on GitHub · 2026-12-01 14:56 UTC · original
VICTORY_PAD_DEADZONEis in main already (off unless set).Pull request closed