--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m Thu Nov 03 03:58:24 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m Thu Nov 03 05:09:05 2011 +0100
@@ -438,10 +438,14 @@
HW_zoomReset();
break;
case 2:
- // pinching
- first = [[allTouches allObjects] objectAtIndex:0];
- second = [[allTouches allObjects] objectAtIndex:1];
- initialDistanceForPinching = distanceBetweenPoints([first locationInView:self.view], [second locationInView:self.view]);
+ if (2 == [[[allTouches allObjects] objectAtIndex:0] tapCount])
+ HW_screenshot();
+ else {
+ // pinching
+ first = [[allTouches allObjects] objectAtIndex:0];
+ second = [[allTouches allObjects] objectAtIndex:1];
+ initialDistanceForPinching = distanceBetweenPoints([first locationInView:self.view], [second locationInView:self.view]);
+ }
break;
default:
break;