Simple DirectMedia Layer https://libsdl.org
Find a file
Ryan C. Gordon 267e681a0b
emscripten: drag-and-drop fixes.
FS.mkdir() will throw a javascript exception if the scratch directory already
exists, so catch/ignore that.

Wrap the rest of the scratch i/o in a try/catch block; the event will only
send if everything works out.

Wrap some calls from Javascript to the C runtime's free() in an
EMSCRIPTEN_KEEPALIVE function, so that the compiler doesn't optimize the
function out and crash at runtime.

Fixes #14999.
2026-02-09 21:39:02 -05:00
.github Support building for ARM64 with the MSVC project 2026-01-19 10:16:35 -08:00
android-project Added support for the third stylus button on Android 2026-02-05 10:24:04 -08:00
build-scripts CodeSpell 2026-02-07 18:14:00 +03:00
cmake cmake: treat linker warnings as errors when configuring with SDL_WERROR=ON 2026-02-03 20:54:02 +01:00
docs CodeSpell 2026-02-07 18:14:00 +03:00
examples tests: Fix unreachable code warnings (#14993) 2026-02-07 20:42:59 +03:00
include You can't combine SDL_STRINGIFY_ARG() and SDL_FUNCTION 2026-02-08 11:51:34 -08:00
src emscripten: drag-and-drop fixes. 2026-02-09 21:39:02 -05:00
test Fix warnings: extra semi - spurious (#15014) 2026-02-09 11:48:58 -08:00
VisualC testtray: created VS project and added new click callbacks 2026-02-05 11:08:05 -08:00
VisualC-GDK Added support for the GameSir-G7 Pro 8K controller 2026-02-03 20:09:04 -08:00
wayland-protocols CodeSpell 2026-02-07 18:14:00 +03:00
Xcode CodeSpell 2026-02-07 18:14:00 +03:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Updated .gitignore for png test data 2025-10-10 08:59:27 -07:00
.wikiheaders-options wikiheaders: Generate a current list of supported environment variables. 2025-09-02 15:49:52 -04:00
Android.mk GPU: OpenXR integration (#14837) 2026-01-30 17:18:51 -05:00
BUGS.txt Added a Discord link to BUGS.txt 2025-01-13 16:42:50 -08:00
CMakeLists.txt CodeSpell 2026-02-07 18:14:00 +03:00
CREDITS.md Updated the credits for SDL 3.0 2025-01-13 16:42:50 -08:00
INSTALL.md Add a link to docs/INTRO-mingw.md 2025-03-06 16:25:17 -08:00
LICENSE.txt Updated copyright for 2026 2026-01-01 09:40:08 -08:00
README.md Revert "Update README.md" 2025-11-16 01:15:10 +03:00
WhatsNew.txt Added SDL_HINT_MOUSE_DPI_SCALE_CURSORS 2025-12-09 17:12:08 -08:00

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)