Mirror of SDL
Find a file
Sam Lantinga ca4bd4b63c Android life cycle behavior more closely matches iOS
This change also decouples the pause/resume handling from the video subsystem on Android, so applications that don't use SDL for video can get application life cycle events.

The semantics for the life cycle events are that they need to be handled in an event watch callback, and once they've been delivered, the application will block until it's been resumed. SDL_HINT_ANDROID_BLOCK_ON_PAUSE can be used to control that behavior, and if that's set to "0", then the application will continue to run in the background at low CPU usage until being resumed or stopped.

SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO has been removed, and the audio will be paused when the application is paused.

Fixes https://github.com/libsdl-org/SDL/issues/3193
2024-07-24 05:11:13 -07:00
.github workflows: Enable building examples on GitHub Actions. 2024-07-23 01:04:05 -04:00
android-project Added SDL_GetWindowSafeArea() 2024-07-23 17:06:04 -07:00
build-scripts Renamed SDL life cycle functions 2024-07-24 05:11:13 -07:00
cmake cmake: actually check ARM64EC 2024-07-19 22:24:44 +02:00
docs Android life cycle behavior more closely matches iOS 2024-07-24 05:11:13 -07:00
examples examples: Added audio/simple-playback-callback. 2024-07-23 17:52:42 -04:00
include Android life cycle behavior more closely matches iOS 2024-07-24 05:11:13 -07:00
mingw/pkg-support mingw: use DESTDIR to change the install location of the mingw package 2024-07-07 20:35:33 +02:00
src Android life cycle behavior more closely matches iOS 2024-07-24 05:11:13 -07:00
test Fixed testvulkan on macOS (thanks @proton991!) 2024-07-23 08:17:22 -07:00
VisualC Fix SDL3ConfigVersion.cmake of VC development package for ARM64EC 2024-07-20 00:59:58 +02:00
VisualC-GDK Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
VisualC-WinRT Simplified SDL_Surface 2024-07-10 00:48:18 -07:00
wayland-protocols video: Expose HDR metadata per-window 2024-06-20 15:55:07 -04:00
Xcode main: Move SDL_RunApp bits from src/core to src/main. 2024-07-05 08:52:25 -07: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 Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked 2023-08-05 14:14:45 -04:00
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore audio: Refer to audio devices to "playback" and "recording". 2024-06-15 01:08:12 -04:00
.wikiheaders-options wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
Android.mk Create a functional CMake project using androidbuild.sh 2024-06-18 00:11:44 +02:00
BUGS.txt Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
CMakeLists.txt examples: Add CMake glue to optionally build examples, as we do for the tests. 2024-07-23 00:58:57 -04:00
CREDITS.md docs: Moved CREDITS and INSTALL to markdown format. 2023-11-29 12:31:27 -05:00
INSTALL.md Updated INSTALL.md 2024-04-10 09:18:42 -04:00
LICENSE.txt Updated copyright for 2024 2024-01-01 13:15:26 -08:00
README-SDL.txt More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
README.md Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00
WhatsNew.txt audio: Refer to audio devices to "playback" and "recording". 2024-06-15 01:08:12 -04:00

Simple DirectMedia Layer (SDL) Version 3.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. 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. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.

Enjoy!

Sam Lantinga (slouken@libsdl.org)