No description
Find a file
Sam Lantinga b3441c1e05 Added support for mixing Qt and SDL on iOS
You should call SDL_SetMainReady(), and then customize the QIOSApplicationDelegate like this, in your application code:

/* Additional support for applications mixing Qt and SDL */
@interface QIOSApplicationDelegate : UIResponder <UIApplicationDelegate>
@end

extern "C"
{
void SDL_OnApplicationWillResignActive();
void SDL_OnApplicationDidEnterBackground();
void SDL_OnApplicationWillEnterForeground();
void SDL_OnApplicationDidBecomeActive();
}

@interface QIOSApplicationDelegate (SDL)

- (void)applicationWillResignActive:(UIApplication*)application;
- (void)applicationDidEnterBackground:(UIApplication*)application;
- (void)applicationWillEnterForeground:(UIApplication*)application;
- (void)applicationDidBecomeActive:(UIApplication*)application;

@end

@implementation QIOSApplicationDelegate (SDL)

- (void)applicationWillResignActive:(UIApplication*)application
{
    SDL_OnApplicationWillResignActive();
}

- (void)applicationDidEnterBackground:(UIApplication*)application
{
    SDL_OnApplicationDidEnterBackground();
}

- (void)applicationWillEnterForeground:(UIApplication*)application
{
    SDL_OnApplicationWillEnterForeground();
}

- (void)applicationDidBecomeActive:(UIApplication*)application
{
    SDL_OnApplicationDidBecomeActive();
}

@end // QIOSApplicationDelegate
2017-05-09 10:10:42 -07:00
acinclude
android-project android: More robust fix for screen locking in landscape (thanks, Sylvain!). 2017-04-07 20:17:30 -04:00
build-scripts Emscripten: Simplified option name in build script and README. 2017-04-02 21:33:24 +02:00
cmake
debian
docs Emscripten: Simplified option name in build script and README. 2017-04-02 21:33:24 +02:00
include Fixed comment typo 2017-05-05 05:10:30 -07:00
src Added support for mixing Qt and SDL on iOS 2017-05-09 10:10:42 -07:00
test Removed unused field in loopwavequeue program. 2017-04-29 22:50:23 +02:00
VisualC
VisualC-WinRT
visualtest
Xcode
Xcode-iOS ios: Fixed compiler warnings about unused variables in demo. 2017-04-09 23:00:26 +02:00
.hgignore
.hgtags
Android.mk
autogen.sh
BUGS.txt BUGS.txt: Changed mailing list link to discourse.libsdl.org. 2017-04-01 00:05:25 -04:00
cmake_uninstall.cmake.in
CMakeLists.txt
configure Fixed another AC_DEFINE. 2017-05-02 11:31:14 -04:00
configure.in Fixed another AC_DEFINE. 2017-05-02 11:31:14 -04:00
COPYING.txt
CREDITS.txt
INSTALL.txt
Makefile.in
Makefile.minimal
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.txt
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
TODO.txt
VisualC.html
WhatsNew.txt

                         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)