sdl2_frt/src/video/uikit
Sam Lantinga 9ac3bb7011 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
..
keyinfotable.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitappdelegate.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitappdelegate.m Added support for mixing Qt and SDL on iOS 2017-05-09 10:10:42 -07:00
SDL_uikitclipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitclipboard.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitevents.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitevents.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitmessagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitmessagebox.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitmodes.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitmodes.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitopengles.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitopengles.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitopenglview.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitopenglview.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitvideo.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitvideo.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitview.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitview.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitviewcontroller.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitviewcontroller.m Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitwindow.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_uikitwindow.m Removed newlines from error messages. 2017-03-26 21:00:19 +02:00