Repository navigation
Conversation
|
#927 is still open for the same #874 fix, and the issue links a guest-facing Could we land one implementation and carry over the guest-facing test and the sequence-number check? AI-assisted with Codex. |
Cover small output buffers, retained readings, and stable sequence numbers. The buffer and snapshot cases are adapted from MichaelSmithAI's BastienRodz#2 regression based on Marvisak#927. Place the test next to the keyboard reading tests so it can merge with Marvisak#2715.
|
Matches the documented semantics: surviving keys keep their relative order from the previous reading, newly pressed keys append in host poll order (stable sort with usize::MAX position). Identity by (scan_code, virtual_key) is the right pair. The regression covers the important sequences including re-press order and the sequence-number non-bump on poll-order-only change. |
|
Automated triage for the maintainers. Needs rebase. This branch no longer merges cleanly into Generated by Claude Code |
The Windows keyboard source scans virtual keys numerically. Pressing W, then A while holding W, previously returned [A, W]. GetKeyState documents that newly pressed keys are appended and released entries shift out. Preserve the order of surviving keys from the last reading, using scan code and virtual key for identity. Keep the host order for keys first observed together. Regression covers adding, removing, re-pressing, and avoiding an extra sequence number when only the poll order changes. It failed before the fix and all eight fake-host GameInput tests passed locally. No hardware or game run. GetKeyState documentation.