cocoaTouch/SDLOverrides/SDL_uikitview.m
changeset 2701 3a8560c00f78
parent 2696 41aa7b56c17b
child 2705 2b5625c4ec16
--- a/cocoaTouch/SDLOverrides/SDL_uikitview.m	Wed Jan 20 14:31:45 2010 +0000
+++ b/cocoaTouch/SDLOverrides/SDL_uikitview.m	Sat Jan 23 13:15:27 2010 +0000
@@ -166,7 +166,7 @@
 
 	// one tap - single click
 	if (1 == [touch tapCount] ) {
-		SDL_WarpMouseInWindow([SDLUIKitDelegate sharedAppDelegate].windowID, gestureStartPoint.x, gestureStartPoint.y);
+		//SDL_WarpMouseInWindow([SDLUIKitDelegate sharedAppDelegate].windowID, gestureStartPoint.x, gestureStartPoint.y);
 		HW_click();
 	}
 	
@@ -230,14 +230,14 @@
 	CGFloat Xdiff = gestureStartPoint.x - currentPosition.x;
 	CGFloat Ydiff = gestureStartPoint.y - currentPosition.y;
 	CGFloat deltaX = fabsf(Xdiff);
-    CGFloat deltaY = fabsf(Ydiff);
+	CGFloat deltaY = fabsf(Ydiff);
     
 	if (deltaX >= kMinimumGestureLength && deltaY <= kMaximumVariance) {
 		NSLog(@"Horizontal swipe detected, begX:%f curX:%f", gestureStartPoint.x, currentPosition.x);
 		if (Xdiff > 0) HW_walkLeft();
 		else HW_walkRight();
-    }
-    else if (deltaY >= kMinimumGestureLength && deltaX <= kMaximumVariance){
+	}
+	else if (deltaY >= kMinimumGestureLength && deltaX <= kMaximumVariance){
 		NSLog(@"Vertical swipe detected, begY:%f curY:%f", gestureStartPoint.y, currentPosition.y);
 		if (Ydiff > 0) HW_aimUp();
 		else HW_aimDown();
@@ -249,7 +249,7 @@
 		UITouch *first = [twoTouches objectAtIndex:0];
 		UITouch *second = [twoTouches objectAtIndex:1];
 		CGFloat currentDistance = distanceBetweenPoints([first locationInView:self], [second locationInView:self]);
-	
+		
 		if (0 == initialDistance) 
 			initialDistance = currentDistance;
 		else if (currentDistance - initialDistance > kMinimumPinchDelta) {