cocoaTouch/overlayViewController.m
author koda
Sat, 20 Mar 2010 15:16:59 +0000
changeset 3025 01682ec58eb0
parent 3015 20a9c8160e82
child 3026 1a44c0f2b83b
permissions -rw-r--r--
update project for ipad target relocate objects (windbar, fps, timer) so that window size doesn't matter move touch input in its custom controller rather than hack sdl one
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     1
//
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     2
//  overlayViewController.m
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     3
//  HedgewarsMobile
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     4
//
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     5
//  Created by Vittorio on 16/03/10.
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     7
//
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     8
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
     9
#import "overlayViewController.h"
3025
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
    10
#import "SDL_uikitappdelegate.h"
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    11
#import "PascalImports.h"
3025
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
    12
#import "SDL_mouse.h"
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
    13
#import "CGPointUtils.h"
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    14
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    15
@implementation overlayViewController
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    16
@synthesize dimTimer;
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    17
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    18
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    19
-(void) didReceiveMemoryWarning {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    20
	// Releases the view if it doesn't have a superview.
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    21
    [super didReceiveMemoryWarning];
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    22
	
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    23
	// Release any cached data, images, etc that aren't in use.
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    24
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    25
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    26
-(void) viewDidLoad {
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    27
    dimTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:6]
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    28
                                        interval:1000
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    29
                                          target:self
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    30
                                        selector:@selector(dimOverlay)
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    31
                                        userInfo:nil
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    32
                                         repeats:YES];
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    33
    
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    34
    [[NSRunLoop currentRunLoop] addTimer:dimTimer forMode:NSDefaultRunLoopMode];
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    35
}
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    36
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    37
-(void) viewDidUnload {
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    38
	[dimTimer invalidate];
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    39
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    40
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    41
-(void) dealloc {
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    42
    [dimTimer release];
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    43
    [super dealloc];
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    44
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    45
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    46
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    47
// dim the overlay when there's no more input for a certain amount of time
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    48
-(IBAction) buttonReleased:(id) sender {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    49
	HW_allKeysUp();
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    50
    [dimTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:2.7]];
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    51
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    52
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    53
// nice transition for dimming
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    54
-(void) dimOverlay {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    55
    [UIView beginAnimations:@"overlay dim" context:NULL];
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    56
   	[UIView setAnimationDuration:0.6];
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    57
    self.view.alpha = 0.2;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    58
	[UIView commitAnimations];
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    59
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    60
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    61
// set the overlay visible and put off the timer for enough time
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    62
-(void) activateOverlay {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    63
    self.view.alpha = 1;
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    64
    [dimTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:1000]];
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    65
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    66
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    67
// issue certain action based on the tag of the button 
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    68
-(IBAction) buttonPressed:(id) sender {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    69
    [self activateOverlay];
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    70
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    71
    UIButton *theButton = (UIButton*)sender;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    72
    switch (theButton.tag) {
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    73
        case 0:
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    74
           	HW_walkLeft();
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    75
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    76
        case 1:
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    77
            HW_walkRight();
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    78
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    79
        case 2:
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    80
            HW_aimUp();
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    81
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    82
        case 3:
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    83
            HW_aimDown();
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    84
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    85
        case 4:
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    86
            HW_shoot();
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    87
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    88
        case 5:
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    89
            HW_jump();
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    90
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    91
        case 6:
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    92
            HW_backjump();
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    93
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    94
        default:
3015
20a9c8160e82 add jump and backjump controls
koda
parents: 3006
diff changeset
    95
            // HW_chat() HW_tab() HW_pause()
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    96
            break;
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    97
    }
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    98
}
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
    99
3025
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   100
#pragma mark -
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   101
#pragma mark Custom SDL_UIView input handling
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   102
#define kMinimumPinchDelta      50
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   103
#define kMinimumGestureLength	10
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   104
#define kMaximumVariance        3
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   105
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   106
// we override default touch input to implement our own gestures
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   107
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   108
	NSArray *twoTouches;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   109
	UITouch *touch = [touches anyObject];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   110
	
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   111
	switch ([touches count]) {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   112
		case 1:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   113
			gestureStartPoint = [touch locationInView:self.view];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   114
			initialDistanceForPinching = 0;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   115
			switch ([touch tapCount]) {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   116
				case 1:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   117
					NSLog(@"X:%d Y:%d", (int)gestureStartPoint.x, (int)gestureStartPoint.y );
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   118
					SDL_WarpMouseInWindow([SDLUIKitDelegate sharedAppDelegate].window, 
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   119
							      (int)gestureStartPoint.y, 320 - (int)gestureStartPoint.x);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   120
					HW_click();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   121
					break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   122
				case 2:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   123
					HW_ammoMenu();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   124
					break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   125
				default:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   126
					break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   127
			}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   128
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   129
		case 2:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   130
			if (2 == [touch tapCount]) {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   131
				HW_zoomReset();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   132
			}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   133
			
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   134
			// pinching
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   135
			twoTouches = [touches allObjects];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   136
			UITouch *first = [twoTouches objectAtIndex:0];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   137
			UITouch *second = [twoTouches objectAtIndex:1];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   138
			initialDistanceForPinching = distanceBetweenPoints([first locationInView:self.view], [second locationInView:self.view]);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   139
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   140
		default:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   141
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   142
	}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   143
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   144
}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   145
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   146
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   147
	initialDistanceForPinching = 0;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   148
	gestureStartPoint.x = 0;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   149
	gestureStartPoint.y = 0;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   150
	HW_allKeysUp();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   151
}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   152
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   153
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   154
	// this can happen if the user puts more than 5 touches on the screen at once, or perhaps in other circumstances.
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   155
	// Usually (it seems) all active touches are canceled.
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   156
	[self touchesEnded:touches withEvent:event];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   157
}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   158
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   159
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   160
	NSArray *twoTouches;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   161
	CGPoint currentPosition;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   162
	UITouch *touch = [touches anyObject];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   163
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   164
	switch ([touches count]) {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   165
		case 1:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   166
			currentPosition = [touch locationInView:self.view];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   167
			// panning
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   168
			SDL_WarpMouseInWindow([SDLUIKitDelegate sharedAppDelegate].window, 
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   169
							(int)gestureStartPoint.y, 320 - (int)gestureStartPoint.x);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   170
			// remember that we have x and y inverted
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   171
			/* temporarily disabling hog movements for camera panning testing
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   172
			CGFloat vertDiff = gestureStartPoint.x - currentPosition.x;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   173
			CGFloat horizDiff = gestureStartPoint.y - currentPosition.y;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   174
			CGFloat deltaX = fabsf(vertDiff);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   175
			CGFloat deltaY = fabsf(horizDiff);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   176
			
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   177
			if (deltaY >= kMinimumGestureLength && deltaX <= kMaximumVariance) {
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   178
				NSLog(@"Horizontal swipe detected, begX:%f curX:%f", gestureStartPoint.x, currentPosition.x);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   179
				if (horizDiff > 0) HW_walkLeft();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   180
				else HW_walkRight();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   181
			} else if (deltaX >= kMinimumGestureLength && deltaY <= kMaximumVariance){
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   182
				NSLog(@"Vertical swipe detected, begY:%f curY:%f", gestureStartPoint.y, currentPosition.y);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   183
				if (vertDiff < 0) HW_aimUp();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   184
				else HW_aimDown();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   185
			}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   186
			*/
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   187
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   188
		case 2:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   189
			twoTouches = [touches allObjects];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   190
			UITouch *first = [twoTouches objectAtIndex:0];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   191
			UITouch *second = [twoTouches objectAtIndex:1];
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   192
			CGFloat currentDistanceOfPinching = distanceBetweenPoints([first locationInView:self.view], [second locationInView:self.view]);
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   193
			
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   194
			if (0 == initialDistanceForPinching) 
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   195
				initialDistanceForPinching = currentDistanceOfPinching;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   196
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   197
			if (currentDistanceOfPinching < initialDistanceForPinching + kMinimumPinchDelta)
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   198
				HW_zoomOut();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   199
			else if (currentDistanceOfPinching > initialDistanceForPinching + kMinimumPinchDelta)
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   200
				HW_zoomIn();
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   201
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   202
			currentDistanceOfPinching = initialDistanceForPinching;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   203
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   204
		default:
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   205
			break;
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   206
	}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   207
}
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   208
01682ec58eb0 update project for ipad target
koda
parents: 3015
diff changeset
   209
3006
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
   210
da6023c2745b restore compilation on simulator and device
koda
parents:
diff changeset
   211
@end