Simple DirectMedia Layer https://libsdl.org
Find a file
Brad Smith ba6b629a46 cmake: Fix header detection with CheckUSBHID
Make use of check_include_files to be able to also include
stdint.h when checking for the headers. Fixes detection of
usbhid.h on OpenBSD.

/usr/include/usbhid.h:40:2: error: unknown type name 'uint32_t'
   40 |         uint32_t _usage_page;
      |         ^

(cherry picked from commit 410a35fbee)
(cherry picked from commit 0c7042477a)
2026-01-28 07:46:32 -08:00
.github ci: bump cross-platform-actions. 2025-10-07 14:28:50 +03:00
acinclude autotools, libtool, win32: add 'aarch64' support to the file magic test. 2024-09-17 14:10:02 +03:00
android-project Provide Android targetsdk 35 support in SDL2 (#13776) 2025-09-13 07:19:52 -07:00
android-project-ant Added the old ant Android build project structure 2017-10-28 12:11:25 -07:00
build-scripts Updated copyright for 2026 2026-01-01 09:56:59 -08:00
cmake cmake: Fix header detection with CheckUSBHID 2026-01-28 07:46:32 -08:00
docs [SDL3] [PS2] Framebuffer resolution + 240p/480p + PAL support (#13993) 2025-09-26 08:26:29 -07:00
include Updated copyright for 2026 2026-01-01 09:56:59 -08:00
mingw/pkg-support fix: in sdl2.pc libdir was changed to prefix 2025-02-05 07:49:11 -08:00
src Fix the video size matching the renderer. 2026-01-19 10:13:13 -08:00
test autotools: Replace sys/types.h usage with stdint.h with CheckUSBHID 2026-01-19 08:30:44 -08:00
VisualC vc: bump CMake compatibility version of sdl2-config.cmake 2024-12-05 04:30:34 +01:00
VisualC-GDK Updated copyright for 2026 2026-01-01 09:56:59 -08:00
VisualC-WinRT video: move standard c, sse and lsx implementations of yuv2rgb to its own source 2024-01-18 17:06:27 -08:00
visualtest Remove unneeded semicolon 2022-11-17 10:43:45 +01:00
wayland-protocols wayland: Apply toplevel bounds to windows 2025-01-06 17:13:16 -05:00
Xcode Updated copyright for 2026 2026-01-01 09:56:59 -08:00
Xcode-iOS/Demos Xcode-iOS/Demos/src/fireworks.c: Make rendering CPU efficient 2025-07-12 07:46:36 -07:00
.clang-format Commented out syntax that causes Visual Studio 2019 to complain on every edit 2022-12-02 00:43:46 -08:00
.editorconfig editorconfig: remove trailing whitespace in source code 2022-12-26 10:34:45 -08:00
.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 Revert "Support Google Play 16 KB Page Size Requirement (#13470)" 2025-08-07 11:37:44 -07:00
autogen.sh Simplified autogen.sh, thanks to @smcv for the tip 2022-05-05 11:54:24 -07:00
BUGS.txt Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
cmake_uninstall.cmake.in Fixed bug 3867 - Can't find install_manifest.txt when running 'uninstall' target 2017-10-12 08:44:45 -07:00
CMakeLists.txt cmake: Fix header detection with CheckUSBHID 2026-01-28 07:46:32 -08:00
configure autotools: Replace sys/types.h usage with stdint.h with CheckUSBHID 2026-01-19 08:30:44 -08:00
configure.ac autotools: Replace sys/types.h usage with stdint.h with CheckUSBHID 2026-01-19 08:30:44 -08:00
CREDITS.txt Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
INSTALL.txt INSTALL.txt: Say "macOS" instead of "Mac OS X" in modern times. 2022-03-15 13:07:55 -04:00
LICENSE.txt Updated copyright for 2026 2026-01-01 09:56:59 -08:00
Makefile.in Makefile.in: add VisualC-GDK to SRC_DIST 2024-05-28 14:10:24 +03:00
Makefile.minimal Split up CFLAGS construction so it can be overridden 2023-03-29 07:26:34 -07:00
Makefile.os2 Updated to version 2.32.11 for development 2025-09-01 15:12:02 -07:00
Makefile.pandora more fixes to standalone makefiles. 2021-11-13 21:56:20 +03:00
Makefile.w32 Updated to version 2.32.11 for development 2025-09-01 15:12:02 -07:00
README-SDL.txt More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
README.md Update and rename README.txt to README.md 2021-03-20 18:46:37 -04:00
sdl2-config-version.cmake.in Add documentation to autotoo'ls sdl2-config-version.cmake.in 2022-05-31 00:10:55 +02:00
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 cmake: use FindALSA.cmake to find ALSA library 2022-12-11 23:23:45 +01:00
SDL2.spec.in license: Fixed references to COPYING.txt that are now LICENSE.txt. 2021-02-18 11:07:26 -05:00
SDL2Config.cmake.in cmake: use FindALSA.cmake to find ALSA library 2022-12-11 23:23:45 +01:00
TODO.txt Fixed up legacy MoinMoin URLs at wiki.libsdl.org 2021-04-01 12:20:33 -04:00
WhatsNew.txt Added the environment variable SDL_LOGGING to control default log output 2024-01-27 19:46:25 -08:00

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)