Skip to content

[pull] master from mgba-emu:master#644

Merged
pull[bot] merged 1 commit intohttpsgithu:masterfrom
mgba-emu:master
Feb 1, 2026
Merged

[pull] master from mgba-emu:master#644
pull[bot] merged 1 commit intohttpsgithu:masterfrom
mgba-emu:master

Conversation

@pull
Copy link

@pull pull bot commented Feb 1, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…txt`

This optional gamepad mapping file allows updates to SDL’s controller database without having to compile mGBA with newer versions of SDL.

To quote the SDL docs:
> Add support for gamepads that SDL is unaware of or change the binding of an existing gamepad.

We try to load the database before the `SDL_InitSubSystem` calls, because the SDL2 docs hint that it’s the best place to do so:
> If this function is called before `SDL_Init`, SDL will generate an `SDL_CONTROLLERDEVICEADDED` event for matching controllers that are plugged in at the time that `SDL_Init` is called.

In SDL3 this remark was changed to say
> Any new mappings for already plugged in controllers will generate SDL_EVENT_GAMEPAD_ADDED events.
@pull pull bot locked and limited conversation to collaborators Feb 1, 2026
@pull pull bot added the ⤵️ pull label Feb 1, 2026
@pull pull bot merged commit 6ba6cc8 into httpsgithu:master Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant