diff src/video/cocoa/SDL_cocoawindow.m @ 4674:89d5e2201b00

Prevented SDL_SendDown from sending on nonexistent touch devices.
author Jim Grandpre <jim.tla@gmail.com>
date Thu, 29 Jul 2010 12:24:34 -0400
parents c17ac64abb70
children 641c13b0ce5f
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Jul 28 23:32:13 2010 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 29 12:24:34 2010 -0400
@@ -313,7 +313,7 @@
             touch.pressureres = touch.pressure_max - touch.pressure_min;
             
             if (SDL_AddTouch(&touch, "") < 0) {
-                return; 
+                continue;
             }
         } 
         float x = [touch normalizedPosition].x;