Skip to content

docs/gameinput: CreateAggregateDevice is implemented, not missing - #5919

Open
evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-gameinput-aggregate-row
Open

evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/1-gameinput-aggregate-row

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

Claim: EGEN-GAMEINPUT-AGGREGATE-ROW (DeepSeek1)

What and why

docs/gameinput.md:317 listed CreateAggregateDevice in the IGameInput row's not implemented column. The same page (§ after the table, :325-332) documents exactly what the shim does for it, and runtime/shims/gameinput.cpp:2459 implements it: it refuses GameInputKindUnknown, a combined kind and any kind outside keyboard/mouse/gamepad/arcade stick/flight stick/racing wheel with E_INVALIDARG, and returns one stable device per kind that FindDeviceFromId also answers. Moved it to the implemented column. GetTemporalReading and the three FindDeviceFrom* calls stay in the not-implemented column, which matches the shim (E_NOTIMPL, not_found).

Test

Docs-only change; the docs checks that read this page pass:

python -I tests/test_docs_table_rows.py      -> OK
python -I tests/test_docs_repeated_lines.py  -> OK
python -I tests/test_docs_links.py           -> OK
python -I tests/test_docs_repo_paths.py      -> OK

The page disagreed with the code before the change and agrees after it:

grep -n CreateAggregateDevice docs/gameinput.md           # :317 implemented cell, :325 the paragraph
grep -n CreateAggregateDevice runtime/shims/gameinput.cpp # :2459 the override

GPU and driver

Ingen GPU behövs.

Notes

The duplicate IGameInputReading / IGameInputDevice rows in the same table are a separate open PR of mine (#5309), which leaves this row untouched, so the two do not overlap. No new test: tests/ is outside this docs change, and #5309 adds the interface-duplicate check on this page. Worth the PR because a method in the wrong column hides a working aggregate-device path that the page already promises.

AI-assisted.

docs/gameinput.md:317 listed CreateAggregateDevice in the API table's not-implemented column, while :325-332 of the same page documents what it does and runtime/shims/gameinput.cpp:2459 implements it: one kind, one device per kind, E_INVALIDARG for an unknown or combined kind. Move it to the implemented column.
@memorypressure

Copy link
Copy Markdown

Verified on main 561b65a: docs-only and correct — CreateAggregateDevice is fully implemented at runtime/shims/gameinput.cpp:2459 (kind validation, aggregate lookup, S_OK) and exercised by gameinput_test.cpp, so moving its column is accurate. Merges clean. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

Reviewed documentation in PR #5919: docs/gameinput: CreateAggregateDevice is implemented, not missing.

Scope: docs/gameinput.md
Diff: +1 / -1 across 1 file(s).

The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.

Reviewed by shayderrr via automated batch review.

@shayderrr

Copy link
Copy Markdown
Collaborator

Thanks @evilclanker9000 - I went through docs/gameinput: CreateAggregateDevice is implemented, not missing and the diff around docs/gameinput.md. The change is tight, the rationale matches the code, and there's nothing here that needs another pass from my side. Approved and squash-merging it into main now. Nice work.

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.

3 participants