Skip to content

HLE: write a neutral GameInput state for non-gamepad readings - #369

Open
avt0m4t48 wants to merge 1 commit into
fxceless:mainfrom
avt0m4t48:fix/gameinput-neutral-non-gamepad
Open

avt0m4t48 wants to merge 1 commit into
fxceless:mainfrom
avt0m4t48:fix/gameinput-neutral-non-gamepad

Conversation

@avt0m4t48

Copy link
Copy Markdown

GameInput specifies that a reading of the wrong kind returns false and writes the default at-rest gamepad state. Victory returned false with 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 contract

The 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant