cocoaTouch/SDLOverrides/SDL_uikitappdelegate.m
changeset 3317 198ec44b6d92
parent 3316 52f0482b043f
child 3318 591c42242106
equal deleted inserted replaced
3316:52f0482b043f 3317:198ec44b6d92
    87 	const char **gameArgs = [setup getSettings];
    87 	const char **gameArgs = [setup getSettings];
    88 	[setup release];
    88 	[setup release];
    89     
    89     
    90     OverlayViewController *overlayController;
    90     OverlayViewController *overlayController;
    91     // overlay with controls, become visible after 2 seconds
    91     // overlay with controls, become visible after 2 seconds
    92     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    92     overlayController = [[OverlayViewController alloc] initWithNibName:@"OverlayViewController-iPhone" bundle:nil];
    93         overlayController = [[OverlayViewController alloc] initWithNibName:@"OverlayViewController-iPad" bundle:nil];
    93     
    94     else
       
    95         overlayController = [[OverlayViewController alloc] initWithNibName:@"OverlayViewController-iPhone" bundle:nil];
       
    96 
       
    97     [uiwindow addSubview:overlayController.view];
    94     [uiwindow addSubview:overlayController.view];
    98     [overlayController release];
    95     [overlayController release];
    99 
    96 
   100     isInGame = YES;
    97     isInGame = YES;
   101 	Game(gameArgs); // this is the pascal fuction that starts the game
    98 	Game(gameArgs); // this is the pascal fuction that starts the game