cocoaTouch/SDLOverrides/SDL_uikitview.m
changeset 2740 03df0573a9fd
parent 2738 bfccb2ec4334
child 2754 ad4f81fbfb76
equal deleted inserted replaced
2739:f860f27028cc 2740:03df0573a9fd
    91 	return [documentsDirectory UTF8String];
    91 	return [documentsDirectory UTF8String];
    92 }
    92 }
    93 
    93 
    94 void IPH_showControls (void) {
    94 void IPH_showControls (void) {
    95 	NSLog(@"Showing controls");
    95 	NSLog(@"Showing controls");
    96 	/*
       
    97 	[UIView beginAnimations:nil context:NULL];
    96 	[UIView beginAnimations:nil context:NULL];
    98 	[UIView setAnimationDuration:0.5];
    97 	[UIView setAnimationDuration:0.5];
    99 	attackButton.frame = CGRectMake(30, 430, 260, 50);
    98 	attackButton.frame = CGRectMake(30, 430, 260, 50);
   100 	menuButton.frame = CGRectMake(0, 430, 30, 50);
    99 	menuButton.frame = CGRectMake(0, 430, 30, 50);
   101 	[UIView commitAnimations];
   100 	[UIView commitAnimations];
   102 	*/
       
   103 }
   101 }
   104 
   102 
   105 #pragma mark -
   103 #pragma mark -
   106 #pragma mark Superclass methods
   104 #pragma mark Superclass methods
   107 +(void) attackButtonPressed {
   105 +(void) attackButtonPressed {
   112 	HW_allKeysUp();
   110 	HW_allKeysUp();
   113 }
   111 }
   114 
   112 
   115 #pragma mark -
   113 #pragma mark -
   116 #pragma mark Custom SDL_UIView input handling
   114 #pragma mark Custom SDL_UIView input handling
   117 #define kMinimumPinchDelta	30
   115 #define kMinimumPinchDelta	40
   118 #define kMinimumGestureLength	10
   116 #define kMinimumGestureLength	10
   119 #define kMaximumVariance	3
   117 #define kMaximumVariance	3
   120 
   118 
   121 // we override default touch input to implement our own gestures
   119 // we override default touch input to implement our own gestures
   122 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   120 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {