hle(input): VICTORY_INPUT_LATCH and VICTORY_STICK_DEADZONE #602
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!602
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-598"
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?
@AnastasisKon on GitHub · 2026-11-28 11:24 UTC · original
AnastasisKon:vibe/input-latch-1705ac→main· +580 −26 · 3 files · 2 commits · openWhat this changes
Ports halfwave50's two input switches (VIctory-macOS-halfwave50
52e0325, GPL-3.0, credited) to the native macOS host, off by default. Refs #433VICTORY_INPUT_LATCH=1: a button change the title has not read yet waits for its nextGetCurrentReading— a tap between two of the title's once-a-frame readings is seen once. Up last reading and pressed since shows down; down last reading and released since shows up; pressed again shows down again. Triggers show their peak since the last reading, sticks their latest value. Readings within 15 ms agree; with no reading for 2 s the latch lets go. Latch state is per device slot, accumulated inState::update, merged at hand-out incurrent_reading/temporal_reading(State::latched).VICTORY_STICK_DEADZONE=<share>: round dead zone per stick applied to host pads at eachHub::poll(before scripted keys merge), rest of travel rescaled to 0..1.Both are per-hub atomics read once in
Hub::start; tests set them on a fake hub.How it was tested
cargo test -p victory-hle --lib gameinput— 19 passed (5 new: tap seen once then not again, held stays down / release shows up, trigger peak then current value, 2 s timeout lets the stale latch go, latch-off default loses taps, dead-zone rounding/rescaling, dead zone applied at poll) — host and--target x86_64-apple-darwin(Rosetta)cargo test -p victory-hle -p victory -p victory-gpu -p xtask— all ok (11 suites)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— RC=0cargo xtask policy— 404 files okChecklist
VICTORY_*variable and documented — both switches documented in docs/native-host.md, off by defaultView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.