Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Explain events for already plugged in controllers #11349

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

xordspar0
Copy link
Contributor

@xordspar0 xordspar0 commented Oct 27, 2024

Description

Add documentation for when GAMEPAD_ADDED events are added to the event queue.
Unlike SDL 3, new events are not generated during AddMapping* functions. You have to call AddMapping* before SDL_Init if you rely on CONTROLLERDEVICEADDED events.

Existing Issue(s)

Backport of #11286
https://discourse.libsdl.org/t/deviced-added-events-for-devices-plugged-in-at-game-start/55039

@slouken slouken merged commit a22baaf into libsdl-org:SDL2 Oct 27, 2024
40 checks passed
@xordspar0 xordspar0 deleted the gamepad-added-at-startup branch October 27, 2024 22:17
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.

2 participants