mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-15 04:58:35 +00:00
21 lines
684 B
Plaintext
21 lines
684 B
Plaintext
#import "AppDelegate.h"
|
|
#import "ViewController.h"
|
|
#import "base/NativeApp.h"
|
|
|
|
@implementation AppDelegate
|
|
-(BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
|
self.viewController = [[ViewController alloc] init];
|
|
self.window.rootViewController = self.viewController;
|
|
[self.window makeKeyAndVisible];
|
|
return YES;
|
|
}
|
|
|
|
-(void) applicationWillResignActive:(UIApplication *)application {
|
|
NativeMessageReceived("lost_focus", "");
|
|
}
|
|
|
|
-(void) applicationDidBecomeActive:(UIApplication *)application {
|
|
NativeMessageReceived("got_focus", "");
|
|
}
|
|
@end |