Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
authorSam Lantinga <slouken@libsdl.org>
Wed, 09 Mar 2011 15:09:00 -0800
changeset 5459881d1e03e381
parent 5458 a96fcc853bef
child 5460 43582fccdc0d
Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
src/video/uikit/SDL_uikitview.m
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Wed Mar 09 15:08:41 2011 -0800
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Wed Mar 09 15:09:00 2011 -0800
     1.3 @@ -77,9 +77,7 @@
     1.4  
     1.5      NSEnumerator *enumerator = [touches objectEnumerator];
     1.6      UITouch *touch = (UITouch*)[enumerator nextObject];
     1.7 -    
     1.8 -    //NSLog("Click");
     1.9 -    
    1.10 +
    1.11      if (touch) {
    1.12          CGPoint locationInView = [touch locationInView: self];
    1.13              
    1.14 @@ -114,9 +112,6 @@
    1.15          }
    1.16        }
    1.17  #endif
    1.18 -      
    1.19 -
    1.20 -      
    1.21  
    1.22        touch = (UITouch*)[enumerator nextObject]; 
    1.23      }
    1.24 @@ -149,6 +144,7 @@
    1.25            SDL_SendFingerDown(touchId,i,
    1.26                   SDL_FALSE,locationInView.x,locationInView.y,
    1.27                   1);
    1.28 +          finger[i] = NULL;
    1.29            break;
    1.30          }
    1.31        }