project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 6268 d773867f93db
parent 6260 025d50a6aeb0
child 6612 8fd6bb239a1e
--- 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;