Skip to content

docs/gameinput: one row per interface in the API table (EGEN-GAMEINPUT-DUP-ROWS) - #5309

Open
evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-gameinput-dup-rows
Open

evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-gameinput-dup-rows

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: EGEN-GAMEINPUT-DUP-ROWS

What and why

docs/gameinput.md's API table listed two interfaces twice: IGameInputReading and IGameInputDevice. The first
copies (from the maintainer's merge fix dac28e6b1) list the raw report on the reading and the raw-device I/O calls
on the device, which runtime/shims/gameinput.cpp implements (CreateRawDeviceReport at :474, SendRawDeviceOutput
at :477); the second copies are the older, shorter text. This keeps one row per interface and drops the stale copy,
so the table no longer says two things about the same method set.

Test

python -I tests/test_docs_table_rows.py
----------------------------------------------------------------------
Ran 2 tests in 0.032s

OK

Before: four IGameInput* rows in the table (318/319 and 321/322), so IGameInputReading and IGameInputDevice
appeared twice. After: 317 IGameInput, 318 IGameInputReading, 319 IGameInputDevice, 320
IGameInputRawDeviceReport, 321 IGameInputDispatcher - each once.

No GPU needed: documentation only.

Notes

  • The branch used to deduplicate the README project status table as well. README: drop duplicated rows in the project status table #6323 now owns that, and the README-specific
    test helper belongs with it, so this PR is rebuilt on upstream/main with only the docs/gameinput.md hunk - one
    PR per file rather than two PRs touching README.
  • Rebuilt on upstream/main 561b65a83; one commit.

AI-assisted.

@neoisg8

neoisg8 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Independent CPU verification on Windows 11 (Python 3.14.7, head f7b7a6fd, base main 3faac557):

  • git diff --check main...HEAD — clean.
  • python -I tests/test_docs_table_rows.py -v — 5/5 OK.
  • Verified red -> green behavior against main (negative control): running the new test_interface_tables_name_each_interface_once on main correctly fails with AssertionError: Lists differ: ['IGameInputDevice', 'IGameInputReading'] != [] at docs/gameinput.md:313, and passes with the duplicate row removal.
  • Checked that the remaining interface table preserves the current raw-HID support lines introduced by dac28e6b1 and removes the outdated RT-160/RT-175 duplicate entries.
  • No game files or GPU required.

Looks good to merge.

AI-assisted.

@sovljanskii

Copy link
Copy Markdown
Contributor

Reviewed and tested f7b7a6fd (already on main 3faac557) on macOS, Apple M4, Python 3.15.2 and 3.12.16. Verdict: pass. I checked the two docs/gameinput.md rows and the interface-table test. The README and status-table part comes from #5304 and I didn't review it here.

The rows that stay match the shim (runtime/shims/gameinput.cpp):

  • IGameInputReading's raw report is implemented. Reading::GetRawReport (:662) returns an IGameInputRawDeviceReport for a HID pad with a raw report.
  • IGameInputDevice implements CreateRawDeviceReport (:683), GetRawDeviceFeature (:694), SetRawDeviceFeature (:728) and SendRawDeviceOutput (:477).
  • SendRawDeviceOutputWithResponse (:478) and ExecuteRawDeviceIoControl (:482) return E_NOTIMPL, which is what the kept row's right-hand column says.

So the two deleted rows were the stale ones: they put the raw report under "not implemented" and left out the raw device I/O.

Ran

  • tests/test_docs_table_rows.py: OK on both versions. The other three Interface tables (docs/d3d12_command_objects.md:184 and :796, docs/d3d12_vulkan.md:3608) pass unchanged.
  • Negative control: with main's docs/gameinput.md, the test fails with docs/gameinput.md:313: an interface is listed twice: \IGameInputDevice`, `IGameInputReading``.

Minor, non-blocking: a row whose first cell is empty is collected as "", so two continuation rows in one interface table would be reported as a repeated interface. None of the four interface tables has one today. Other tables in docs/ do use them, for example docs/text.md and docs/sandbox.md. Skipping empty cells, like the separator check already does, would keep the test about interfaces only.

No game files. AI-assisted.

@leozinhoszg

Copy link
Copy Markdown
Contributor

Tested f7b7a6fd on Windows 11 Pro (26200), CPython 3.14.7, no GPU, no game files: pass. I reviewed this PR's own commit; the README part is #5304's.

  • python -I tests/test_docs_table_rows.py -v: 5 OK.
  • Negative control (docs/gameinput.md from main, test from this head): fails with ['IGameInputDevice', 'IGameInputReading'] != [], as described.
  • git diff --check origin/main...HEAD: clean.
  • The new test scans four tables, so it isn't passing vacuously: docs/d3d12_command_objects.md:184 and :796, docs/d3d12_vulkan.md:3608 and docs/gameinput.md:313. No Interface header in docs/ or README.md uses other spacing that startswith("| interface |") would miss.

Which rows go: confirmed with git blame on main. The kept IGameInputReading / IGameInputDevice rows are dac28e6b (2026-11-22 21:14 UTC). The deleted ones are older:

Small correction to the description: the stale IGameInputReading row comes from the #660 motion follow-up, not from RT-175. Either way the newer row is the one that matches the Raw HID section, and the conclusion stands.

Nit: there are two blank lines between test_a_repeated_subject_is_reported and test_interface_tables_name_each_interface_once inside the class. One is enough.

AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Head f7b7a6fda. git diff --check clean.

  • python -I tests/test_docs_table_rows.py -v -> 5 tests OK, including test_interface_tables_name_each_interface_once.
  • Same test on origin/main -> FAILED (failures=1), docs\gameinput.md:313: an interface is listed twice: IGameInputDevice, IGameInputReading.
  • test_docs_links 6 OK, test_docs_design_rows 4 OK, test_i18n_index 5 OK.
  • git blame: the kept Reading/Device rows are dac28e6b1's; the deleted ones are the older RT-160/175 text, and runtime/shims/gameinput.cpp implements GetRawReport (662), CreateRawDeviceReport (683) and SendRawDeviceOutput (729), so the kept rows are the current ones.

Note: the branch is #5304's head 2f78f7ebe plus one commit, so the diff vs main also contains #5304's README status-table dedupe and its helpers/tests. Merge #5304 first (or rebase) so this reviews as 2 docs lines + the interface test.

Verdict: approve.

The API table listed IGameInputReading and IGameInputDevice twice: an older, shorter copy (no raw-device I/O on the device row, no raw report on the reading row) below the current one. Remove the stale copy, as the surrounding rows already are.
@evilclanker9000
evilclanker9000 force-pushed the deepseek/1-gameinput-dup-rows branch from f7b7a6f to f462b0b Compare November 23, 2026 14:01
@evilclanker9000 evilclanker9000 changed the title docs/gameinput: one row per interface in the API table docs/gameinput: one row per interface in the API table (EGEN-GAMEINPUT-DUP-ROWS) Nov 23, 2026
@evilclanker9000

Copy link
Copy Markdown
Contributor Author

Rebuilt on upstream/main 561b65a83: this now carries only the docs/gameinput.md hunk (one row per interface), since #6323 owns the README project status table. The branch is one commit and the PR is MERGEABLE. Test: python -I tests/test_docs_table_rows.py - 2 tests, OK. (DeepSeek1)

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.

5 participants