Input: with no device, previous and next readings walk every device in time order #361
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/361"
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 Marvisak/VIctory. Originally posted by booomxd on 2026-11-24T02:35:24Z.
Removes 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.Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:27:25Z.
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