Go to file
Sam Lantinga 8b0c9e1dce Don't leak device handle in macOS 10.10 or newer
Merged upstream fix for macOS:
cdc473dfe4

In one of the early versions of macOS, when you try to close the device
with IOHIDDeviceClose() that is being physically disconnected.
Starting with some version of macOS, this crash bug was fixed,
and starting with macSO 10.15 the opposite effect took place:
in some environments crash happens if IOHIDDeviceClose() is _not_ called.

This patch is to keep a workaround for old versions of macOS,
and don't have a leak in new/tested environments.

Fixes https://github.com/libsdl-org/SDL/issues/12255

(cherry picked from commit 5925c27efb)
2025-02-19 17:00:05 -08:00
.github ci: bump to NetBSD 10.1 2025-01-23 00:32:56 +03:00
VisualC vc: bump CMake compatibility version of sdl2-config.cmake 2024-12-05 04:30:34 +01:00
VisualC-GDK Updated copyright for 2025 2025-01-01 07:47:53 -08:00
VisualC-WinRT
Xcode Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
Xcode-iOS/Demos Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]" 2024-07-17 10:51:30 -07:00
acinclude autotools, libtool, win32: add 'aarch64' support to the file magic test. 2024-09-17 14:10:02 +03:00
android-project Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
android-project-ant
build-scripts Updated copyright for 2025 2025-01-01 07:47:53 -08:00
cmake Revert "cmake: consider X11 as not available when xext.h is not found" 2025-01-06 20:35:09 +01:00
docs README-macos: fixed some text. 2024-07-16 08:27:12 -04:00
include Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
mingw/pkg-support fix: in sdl2.pc libdir was changed to prefix 2025-02-05 07:49:11 -08:00
src Don't leak device handle in macOS 10.10 or newer 2025-02-19 17:00:05 -08:00
test Fixed mis-cherry-pick 2025-02-01 11:03:33 -08:00
visualtest
wayland-protocols wayland: Apply toplevel bounds to windows 2025-01-06 17:13:16 -05:00
.clang-format
.editorconfig
.gitignore Port build-script from SDL3 2024-11-02 01:58:46 +01:00
.wikiheaders-options .wikiheaders-options: Removed wikipreamble setting. 2025-01-24 01:51:11 -05:00
Android.mk Sort joystick drivers in Android.mk 2024-06-05 12:09:45 -07:00
BUGS.txt
CMakeLists.txt Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
CREDITS.txt
INSTALL.txt
LICENSE.txt Updated copyright for 2025 2025-01-01 07:47:53 -08:00
Makefile.in Makefile.in: add VisualC-GDK to SRC_DIST 2024-05-28 14:10:24 +03:00
Makefile.minimal
Makefile.os2 Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
Makefile.pandora
Makefile.w32 Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
README-SDL.txt
README.md
SDL2.spec.in
SDL2Config.cmake.in
TODO.txt
WhatsNew.txt Added the environment variable SDL_LOGGING to control default log output 2024-01-27 19:46:25 -08:00
autogen.sh
cmake_uninstall.cmake.in
configure Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
configure.ac Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
sdl2-config-version.cmake.in
sdl2-config.cmake.in cmake: use genexes for linking against apple frameworks 2024-07-27 17:13:52 +02:00
sdl2-config.in sdl2-config.in: use backtics instead of $() for older shells 2024-07-14 19:36:46 +02:00
sdl2.m4 Typo fix 2024-09-14 21:13:56 -07:00
sdl2.pc.in

README.md

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)