Repository navigation
compat-common: an IGameInput with no host devices when GameInputCreate fails (Wine) - #31
Open
fffluffy-dev wants to merge 1 commit into
Open
fffluffy-dev wants to merge 1 commit into
fffluffy-dev wants to merge 1 commit into
Conversation
…e fails Third Trackmania run on the Steam Deck (Proton 10): D3D12 device, queues, heaps, resources, 8 translated shaders and ~40 compute PSOs were up, then the title read through a null object about a second after "[gamepad] GameInputCreate real GameInputCreate failed hr=0x80004001". Wine's gameinput.dll answers E_NOTIMPL, the hook passed the failure on, and the title used the IGameInput it never got. When the real GameInputCreate fails, the hook now wraps a built-in host object instead and returns S_OK: no host devices or readings (GAMEINPUT_E_READING_NOT_FOUND, E_NOTFOUND), QPC timestamps, callback registrations that succeed with fresh tokens, unregister true. The usual wrapper puts the virtual Xbox gamepad on top of it, so the title sees one pad (driven through the pad control directory) and no keyboard or mouse. Hosts with a working GameInput are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014vTZArnDeG1xtBcLprpoCq
Owner
Author
|
Generated by Claude Code |
This was referenced Nov 22, 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.
Problem
On the third Trackmania run on the Steam Deck (Proton 10, through
tombox-launch, #30), a lot came up first:Then the title read through a null object, about a second after this log line:
Wine's
gameinput.dllanswersE_NOTIMPL. The hook passed that failure on, and the title used theIGameInputit never got.Fix
When the real
GameInputCreatefails, the hook now wraps a built-in host object and returnsS_OK. Over the 22IGameInputslots, that object:GAMEINPUT_E_READING_NOT_FOUND,E_NOTFOUND);UnregisterCallbackreturns true;E_NOTIMPLfor dispatcher and aggregate-device creation.The existing wrapper puts the virtual Xbox gamepad on top. The title therefore sees one pad, driven through the pad control directory, and no keyboard or mouse. Hosts with a working GameInput are unchanged.
Test plan
null_host_input_reports_no_devices_and_accepts_registrations: timestamps, readings, tokens, unregister, find and QI through the vtable.cargo check -p compat-common --tests --target x86_64-pc-windows-gnu; PR gate: 0 problems.claude/tombox-launchfor the bundle build).Generated by Claude Code