Skip to content

GameInput v4 support - #16590

Merged
slouken merged 5 commits into
libsdl-org:mainfrom
slouken:GameInputv4
Oct 26, 2026
Merged

slouken merged 5 commits into
libsdl-org:mainfrom
slouken:GameInputv4

Conversation

@slouken

@slouken slouken commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator
  • I confirm that I am the author of this code and release it to the SDL project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

madebr and others added 4 commits October 25, 2026 11:09
This PR fixes the compilation errors introduced with updating to GameInput v4.
This simplifies the logic and we know we're building against GameInput v4. GameInput v0 support is still there for Xbox
#endif

#if GAMEINPUT_API_VERSION != 0 && GAMEINPUT_API_VERSION < 4
#error Only GameInput v0 and v4 or newer are supported

@madebr madebr Oct 25, 2026 •

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.

Is that true? We just found out gameinput v4's api is incompatible with v3's api.
The gameinput dll usually implements all interfaces.

@slouken slouken Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Is is now. This change simplifies the mental gymnastics when writing GameInput support. :)

The assumption here is that when 3.6 releases any games that rely on GameInput functionality will either ship with the redist or Windows update will have installed it.

@slouken
slouken marked this pull request as ready for review October 26, 2026 22:08
@slouken
slouken merged commit ed7764d into libsdl-org:main Oct 26, 2026
10 checks passed
@slouken
slouken deleted the GameInputv4 branch October 26, 2026 22:09
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