mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-16 18:07:07 +00:00
bfa89b3d5f262d240ddfa0a788b41452b6a678c4
Clean up and implement some best practices for event polling and handling: - Ensure that events are still pumped, even if existing events are in the queue, to ensure that the most recent data is always processed. - Handle wl_display_flush returning EAGAIN by trying to poll the socket until it can be written to. - Ensure that events are always pumped on interrupts and broken pipe errors to handle quit events. - Minimize double-pumping of events, since returning a success code from a wait will implicitly pump events again. - Wake to poll when using a DBus IME, but the text input protocol is not enabled, to ensure that text events are delivered.
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)
Languages
C
86.4%
C++
5.8%
Objective-C
3.4%
CMake
1.6%
Perl
0.8%
Other
1.7%