Skip to content

Port gamepad from SDL2 to SDL3#21379

Draft
rtmongold wants to merge 1 commit into
darktable-org:masterfrom
rtmongold:gamepad_port_sdl3
Draft

Port gamepad from SDL2 to SDL3#21379
rtmongold wants to merge 1 commit into
darktable-org:masterfrom
rtmongold:gamepad_port_sdl3

Conversation

@rtmongold

@rtmongold rtmongold commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Closes #21374

Following the SDL3 migration:
https://wiki.libsdl.org/SDL3/README-migration
Renamed SDL2 game controller API to SDL3 gamepad equivalents.

Button names have changed but kept a/b/x/y shortcut names and aliased south/east/west/north.

Updated build, CI, and packaging to depend on SDL3.

Removed the libSDL3 copy from macOS packaging script.

@rtmongold rtmongold force-pushed the gamepad_port_sdl3 branch from ec17be9 to f86c13a Compare June 20, 2026 22:35
@rtmongold rtmongold marked this pull request as ready for review June 20, 2026 22:57
@rtmongold rtmongold marked this pull request as draft June 20, 2026 22:57
@rtmongold rtmongold marked this pull request as ready for review June 20, 2026 23:44
I know this is a bit late, but wanted to get it out here for review
while I continue testing.

Following the SDL3 migration:
https://wiki.libsdl.org/SDL3/README-migration
Renamed SDL2 game controller API to SDL3 gamepad equivalents.

Button names have changed but kept a/b/x/y shortcut names and aliased
south/east/west/north.

Updated build, CI, and packaging to depend on SDL3.

Removed the libSDL3 copy from macOS packaging script.
@rtmongold rtmongold force-pushed the gamepad_port_sdl3 branch from ee2444d to 19e5f7a Compare June 20, 2026 23:47
librsvg2-dev \
libsaxon-java \
libsdl2-dev \
libsdl3-dev \

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.

The nightly build will fail here because neither the Ubuntu 22.04 runner (on which we build the x86_64 AppImage) nor the Ubuntu 24.04 runner (on which we build the aarch64 AppImage) have libsdl3.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What about removing this line and doing something like FindONNXRuntime.cmake, check system pkg -> prev built pkg -> last resort vendor a minimal SDL3?

@rtmongold rtmongold marked this pull request as draft June 21, 2026 18:04
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.

Port gamepad to SDL3

2 participants