test(hle): isolate GameInput fixtures from host input settings #592

Manually merged
github merged 2 commits from github-bot/gh-592 into main 2026-12-05 17:30:02 +00:00 AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-05 13:37 UTC · original
tommiehansen:fix/gameinput-synthetic-tests-357 → main · +37 −14 · 1 files · 2 commits · merged 2026-12-05 17:26 UTC

Refs #357 (the three GameInput test failures on native Windows).

Problem

The fake input source is ignored when the host's native input mode is enabled. Current main (8bf4878) defaults to that mode on Windows, so tests intended to exercise injected keyboard and mouse samples can read real host state instead.

Change

  • Explicitly select host input for the real hub and injected input for the fake hub.
  • Keep fake samples independent of the host's input settings, without changing global environment variables or weakening existing assertions.
  • Add a regression test covering injected keyboard and mouse input.

The production hub keeps the same input selection and defaults. No intended gameplay change. This is separate from the runtime input fixes in #448 and #500.

Verification

  • Current main source inspected; no existing PR specifically addressing these fixture failures found.
  • Native Windows: baseline reproduced all three reported failures (9 passed, 3 failed); candidate passed 13/13 with native input enabled and 13/13 with it disabled. Baseline job is red because the original test command intentionally fails; logs confirm the exact three assertions. CI.

Ready for review.

AI-assisted: yes.

**@⁠tommiehansen** on GitHub · 2026-12-05 13:37 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/592) `tommiehansen:fix/gameinput-synthetic-tests-357` → `main` · +37 −14 · 1 files · 2 commits · merged 2026-12-05 17:26 UTC Refs #357 (the three GameInput test failures on native Windows). ### Problem The fake input source is ignored when the host's native input mode is enabled. Current main (`8bf4878`) defaults to that mode on Windows, so tests intended to exercise injected keyboard and mouse samples can read real host state instead. ### Change - Explicitly select host input for the real hub and injected input for the fake hub. - Keep fake samples independent of the host's input settings, without changing global environment variables or weakening existing assertions. - Add a regression test covering injected keyboard and mouse input. The production hub keeps the same input selection and defaults. No intended gameplay change. This is separate from the runtime input fixes in #448 and #500. ### Verification - [x] Current main source inspected; no existing PR specifically addressing these fixture failures found. - [x] Native Windows: baseline reproduced all three reported failures (9 passed, 3 failed); candidate passed 13/13 with native input enabled and 13/13 with it disabled. Baseline job is red because the original test command intentionally fails; logs confirm the exact three assertions. [CI](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47525943767). Ready for review. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 13:37:22 +00:00
github manually merged commit 36b6df6c86 into main 2026-12-05 17:30:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.