upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/gameinput.md
diff options
context:
space:
mode:
authorSc4ros <353102343+Sc4ros@users.noreply.github.com>2026-11-22 22:15:41 +0100
committerSc4ros <353102343+Sc4ros@users.noreply.github.com>2026-11-22 22:15:41 +0100
commita41173a1aed8a04ec128544e2a04bf24095beea9 (patch)
tree277ec6514b07ae18b2284fc54aa40680bda2cfb5 /docs/gameinput.md
parent37e6d482865ce7266cb198163c049121f46caeb0 (diff)
Tests: gameinput_host fails instead of skipping when GameInput.dll is present (review)
- gameinput_host_test decides the skip before mapping: LoadLibraryExW of GameInput.dll from System32. Only "not found" skips (77); an import that then binds to nothing is a failure. Breaking host ordinal binding in Loader::resolve now fails the test (4 failures) instead of skipping. - The gameinput_host fixture links in Debug: /RTC1 with /NODEFAULTLIB left _RTC_InitBase, _RTC_Shutdown and _RTC_CheckStackVars unresolved, so the fixture defines them as no-ops when runtime checks are on. - The fixture reports E_FAIL, not S_OK, when GameInputCreate fails, and the test counts a gamepad as attached only when the library was created. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index 39c1dc66d..eb82698dd 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -12,7 +12,7 @@ features. That path is tested without the game: `gameinput_host_test` (ctest `ga
12built against the SDK's `gameinput.lib` and checks that its `GameInput.dll` import binds to the host's copy, that 12built against the SDK's `gameinput.lib` and checks that its `GameInput.dll` import binds to the host's copy, that
13`GameInputCreate` and `GetCurrentTimestamp` work from mapped code, and that `GetCurrentReading` answers; with a pad 13`GameInputCreate` and `GetCurrentTimestamp` work from mapped code, and that `GetCurrentReading` answers; with a pad
14attached, `GetGamepadState` must succeed on the reading. It passes on Windows 11 build 26300 (GameInput 0.2309) without 14attached, `GetGamepadState` must succeed on the reading. It passes on Windows 11 build 26300 (GameInput 0.2309) without
15a pad attached. The test skips where there is no `GameInput.dll`. The game executable is not available yet, 15a pad attached. The test skips only where Windows cannot load `GameInput.dll`; with the DLL present, an import that binds to nothing fails it. The game executable is not available yet,
16so whether it imports GameInput this way, and under which 16so whether it imports GameInput this way, and under which
17module, is unverified (see [VERIFY](#verify)). 17module, is unverified (see [VERIFY](#verify)).
18 18