Driving: Space / Left Shift do not accelerate or reverse a boat (C and Z/W still do) #478
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX#478
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@LooperSalty on GitHub · 2026-11-27 01:38 UTC · original
Problem
With keyboard and mouse (no pad connected), a boat (and likely a car) still accelerates only with the key in QWERTY C's place and reverses with the key in QWERTY Z's place (W on AZERTY): the stand-in pad's triggers. The keys added for driving in #470 (Space = right trigger, Left Shift = left trigger) do nothing in game.
Seen on 2026-11-27,
main81734aa5/b62053fe, Series X, AZERTY keyboard, launched withanyxboxx run.What was tried
fallback()inthird_party/victory/crates/victory-hle/src/modules/gameinput.rsalso pulls the right trigger withVK_SPACEand the left one withVK_LSHIFT(unit test passes: Space -> right trigger 1.0, Left Shift -> left trigger 1.0). No change in game.fix/vehicle-keys-pad-only(not pushed): Space and Left Shift are also kept out of the keyboard device the title reads (for_the_keyboard), in case the title's own keyboard actions for them cancelled the trigger. Still no change in game.So the keys reach
fallback()(unit-tested) but the title does not accelerate. Open questions:keys()really reportVK_SPACE/VK_LSHIFTwhile the window has focus (GetAsyncKeyStateover0x08..=0xFE)? Left Shift may come as the genericVK_SHIFT(0x10, filtered out) or only asVK_LSHIFTdepending on how it is queried; worth logging the held keys once per change.buildandvictory.exepath)?Done when
VICTORY_KEYS-style trace) shows which virtual keys the stand-in pad sees while Space / Left Shift are held.@akimfomin on GitHub · 2026-11-27 02:28 UTC · original
At the reported
b62053fe70078deac140ec43039d7ce0af3c6b17, PortBridge found a limit in the existing diagnostic route: bothVICTORY_KEYSandVICTORY_KEYS_FILEcall the samekey_code, which dropsSpaceandLeftShiftbefore they reachfallback. I checked its accepted names and single-character rule against the pinned source: Enter/C/Z are accepted, and those two names are dropped. Meanwhile the focused Win32 scan includes both 0x20 and 0xA0, and Win32 explicitly supports querying the left modifier by its own code. The current fallback unit test injects KeyState directly, downstream of both inputs.For a short diagnostic build, add
"Space" => super::VK_SPACEand"LeftShift" => super::VK_LSHIFTto that parser and log changes to the fallback trigger once. Compare a physical press and a scripted hold of the same exact key, using C as a positive control. If only the script reaches the trigger, look at focus/host sampling. If both reach the trigger but only C drives the boat, compare how the title receives the keyboard and gamepad readings. This was source and CPU-parser checking only. Key names and script path · Win32 modifier query · PortBridge