mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-25 06:36:05 +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 |