HLE: write a neutral GameInput state for non-gamepad readings #369
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!369
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@avt0m4t48 on GitHub · 2026-11-25 00:00 UTC · original
avt0m4t48:fix/gameinput-neutral-non-gamepad→main· +16 −8 · 1 files · 1 commits · openGameInput 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.
@avt0m4t48 on GitHub · 2026-11-25 14:43 UTC · original
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.