mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
57346f2ba8d920856526dae234b135e1c27d3007
Otherwise the window won't have focus until you click on it again. Calling makeKeyAndOrderFront isn't enough to fix it, either. This trick comes from a similar problem we solve in our applicationDidFinishLaunching implementation: activate (give app focus to) the system Dock, as something that definitely exists that isn't us and is harmless to activate, and then activate us right afterwards. This unconfuses whatever is getting confused inside Cocoa. Fixes #12684.
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
85.7%
C++
6.6%
Objective-C
3.4%
CMake
1.6%
Perl
0.7%
Other
1.7%