HLE: write a neutral GameInput state for non-gamepad readings #369
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/369"
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 fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T00:00:21Z.
GameInput specifies that a reading of the wrong kind returns
falseand writes the default at-rest gamepad state. Victory returnedfalsewith the caller's previous state still in the output. Write a neutral state for a keyboard reading so a reused buffer cannot retain old button, trigger, or stick values. Microsoft API contractThe existing keyboard/stand-in test now passes the same state buffer to both reading kinds through their interface vtables. It failed on main and passed with the fix. All five fake-source module tests passed in the Linux harness. A separate vtable probe filled and then cleared all seven fields. The Windows MSVC HLE and GPU test targets type-checked with warnings denied. Native Windows execution and game behavior were outside these checks.
AI-assisted using Codex.
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:43:19Z.
All six GameInput module tests passed on native Windows at
8982484. The keyboard and stand-in pad test reuses the same gamepad output buffer through both vtables and verifies that the keyboard reading returns false with a neutral output. These tests use a fake input source and do not require a physical controller.Exact-head Windows run
AI-assisted using Codex.
View 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.