Input: with no device, previous and next readings walk every device in time order #361
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!361
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/361/head"
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?
@booomxd on GitHub · 2026-11-24 02:35 UTC · original
booomxd:input/walk-all-devices→main· +74 −17 · 1 files · 1 commits · merged 2026-11-25 00:19 UTCRemoves the
shortcut:inrelative(gameinput.rs): with no device given,GetNextReading/GetPreviousReadingwalked only the reference's own device.Now, with no device, the walk covers every device's kept readings in time order, as the API documents. Readings from one poll share a timestamp, so ties go by device index, then sequence; on a single device that order is its sequence order, so walks with a device named are unchanged.
REFERENCE_TOO_OLDis still decided on the reference's own device.Test
with_no_device_readings_are_walked_across_devices_in_time_order: stand-in pad and keyboard (same poll), a host pad, a key, the pad again. Checks next/previous across all of them in both directions, the gamepad-only filter skipping keyboard readings, and that naming a device still keeps the walk on it.cargo test -p victory-hle gameinput: 8 passed.cargo clippy -p victory-hle --all-targets: clean. Not run in-game; Grand Theft Auto VI's own walks (keyboard only, current pad's previous) behave as before.@jeremygold02 on GitHub · 2026-11-24 04:27 UTC · original
Tested PR #361 at head
3f5eff57603270823920e15b93479dc168b08eb9(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at3f5eff57603270823920e15b93479dc168b08eb9.cargo test --locked -p victory-hle with_no_device_readings_are_walked_across_devices_in_time_order— passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 86 filtered out; finished in 0.01s ); cases: modules::gameinput::tests::with_no_device_readings_are_walked_across_devices_in_time_order.Behavior covered: Checks controller readings walk all devices in timestamp order when no device is selected.
Code: crates/victory-hle/src/modules/gameinput.rs