Repository navigation
docs/gameinput.md: the retail executable reads the keyboard through GameInput too, and never asks for raw reports - #7637
Open
PinaTheOne wants to merge 1 commit into
Open
PinaTheOne wants to merge 1 commit into
PinaTheOne wants to merge 1 commit into
Conversation
Read from the 1.0.2.1 executable's call sites (own copy; method names, enum names and counts only). Its nine IGameInput method calls pass GameInputKindGamepad and GameInputKindKeyboard, never RawDeviceReport or Mouse: GetCurrentReading (Gamepad, Keyboard), GetNextReading (Keyboard), GetPreviousReading (Gamepad), RegisterDeviceCallback (Gamepad, Keyboard; statusFilter Connected), UnregisterCallback x2, FindDeviceFromId. So "The title reads gamepads only" in the keyboard pad section is not so: the title also reads the keyboard through GameInput, which the shim answers with nothing (ItsNotRexed#2413 adds keyboard devices and readings). And the open "whether the title asks for raw reports at all" is answered: it never does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
Contributor
|
Tested 580f825 merged with main 028548a on Linux/Python 3.12.16: pass Docs-only change (docs/gameinput.md). Ran every tests/test_docs_*.py with No new tests are added, so there is no negative control. I read the diff against the repository state and found no inconsistency. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: new item (claim)
Related: #2413 (RT-159, keyboard and mouse devices and readings). This measurement bears on it; there is no textual overlap.
What and why
docs/gameinput.mdstates that "The title reads gamepads only" in its keyboard pad section, and later that "whether the title asks for raw reports at all is unknown". The executable answers both. I read itsIGameInputcall sites on my own 1.0.2.1 copy, without running anything; what is posted here is method names, enum names and counts only.GameInputCreateis imported by ordinal 1 (gameinput: serve GameInput.dll's ordinal 1, the retail executable's GameInputCreate import #7216) and called from one getter, which creates theIGameInputonce and keeps it in a global.inputKindGetCurrentReading(4)Gamepad1,Keyboard1GetNextReading(5)KeyboardGetPreviousReading(6)GamepadRegisterDeviceCallback(9)Gamepad1,Keyboard1statusFilterGameInputDeviceConnectedin bothUnregisterCallback(13)FindDeviceFromId(16)What that means for the doc:
RawDeviceReportorMouse. No otherIGameInputmethod is called, includingCreateDispatcher, so callbacks run on the shim's thread. The raw-reports line now says the title never asks.GetCurrentReadingand in r8 for the other three, and the status filter in r9 forRegisterDeviceCallback. That is consistent with the v0 vtable the shim serves.The new section "What the executable asks for" records the table and how it was read: the getter comes from
tools/import_call_sites.py --import "GameInput.dll!#1", each use was followed to its vtable call in an llvm-objdump listing, and the constants were read there.Tested
Docs only. Arch Linux, Python 3.14.10, CPU only.
tests/test_docs_links.py: the anchors this adds and uses (#what-the-executable-asks-for,#keyboard-pad,#how-it-runs,#verify) resolve.test_docs_repo_paths.py,test_docs_table_rows.py,test_docs_list_items.py,test_docs_repeated_lines.py,test_docs_env_vars.py: OK.test_docs_links.pyandtest_docs_cli_flags.pyfail onmaintoo, atdocs/dev-tools.mdanddocs/embedded_shaders.md. None of their failures namesdocs/gameinput.md.scripts/check_no_game_data.py docs/gameinput.md: clean.AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code