project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 3765 ebfe7c9b3085
parent 3739 97cf933e5bd2
child 3779 3351a017d4ad
equal deleted inserted replaced
3764:eb91c02f2d84 3765:ebfe7c9b3085
   325 #pragma mark -
   325 #pragma mark -
   326 #pragma mark Custom touch event handling
   326 #pragma mark Custom touch event handling
   327 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   327 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   328     NSSet *allTouches = [event allTouches];
   328     NSSet *allTouches = [event allTouches];
   329     UITouch *first, *second;
   329     UITouch *first, *second;
       
   330 
       
   331     if (isGameRunning == NO)
       
   332         return;
   330 
   333 
   331     // hide in-game menu
   334     // hide in-game menu
   332     if (isPopoverVisible)
   335     if (isPopoverVisible)
   333         [self dismissPopover];
   336         [self dismissPopover];
   334 
   337