Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
authorSam Lantinga <slouken@libsdl.org>
Wed, 09 Mar 2011 15:09:00 -0800
changeset 5459 881d1e03e381
parent 5458 a96fcc853bef
child 5460 43582fccdc0d
Fixed touches for the !IPHONE_TOUCH_EFFICIENT_DANGEROUS case
src/video/uikit/SDL_uikitview.m
--- a/src/video/uikit/SDL_uikitview.m	Wed Mar 09 15:08:41 2011 -0800
+++ b/src/video/uikit/SDL_uikitview.m	Wed Mar 09 15:09:00 2011 -0800
@@ -77,9 +77,7 @@
 
     NSEnumerator *enumerator = [touches objectEnumerator];
     UITouch *touch = (UITouch*)[enumerator nextObject];
-    
-    //NSLog("Click");
-    
+
     if (touch) {
         CGPoint locationInView = [touch locationInView: self];
             
@@ -114,9 +112,6 @@
         }
       }
 #endif
-      
-
-      
 
       touch = (UITouch*)[enumerator nextObject]; 
     }
@@ -149,6 +144,7 @@
           SDL_SendFingerDown(touchId,i,
                  SDL_FALSE,locationInView.x,locationInView.y,
                  1);
+          finger[i] = NULL;
           break;
         }
       }