Simple DirectMedia Layer https://libsdl.org
Find a file
Joe [ReRezd] 4318013777 Fix: GameCube controller adapter hotplug not working
SDL_PrivateJoystickAdded was called before setting the InstanceId in the adapters ctx->joysticks array.  This would eventually broadcast the SDL_EVENT_JOYSTICK_ADDED event with the new InstanceId, if your program listens for the added events and opens joysticks at that point it would always fail because there would be no matching InstanceId in the ctx->joysticks array.

(cherry picked from commit afd1e51023)
(cherry picked from commit 4b4f6b3e22)
2025-05-19 08:26:52 -07:00
.github
acinclude
android-project
android-project-ant
build-scripts
cmake
docs
include
mingw/pkg-support
src Fix: GameCube controller adapter hotplug not working 2025-05-19 08:26:52 -07:00
test
VisualC
VisualC-GDK
VisualC-WinRT
visualtest
wayland-protocols
Xcode
Xcode-iOS/Demos
.clang-format
.editorconfig
.gitignore
.wikiheaders-options
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt
configure
configure.ac
CREDITS.txt
INSTALL.txt
LICENSE.txt
Makefile.in
Makefile.minimal
Makefile.os2
Makefile.pandora
Makefile.w32
README-SDL.txt
README.md
sdl2-config-version.cmake.in
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake.in
TODO.txt
WhatsNew.txt

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)