diff src/video/cocoa/SDL_cocoawindow.m @ 4676:99b4560b7aa1

Upgraded touchId/fingerId to long. Changed position variables to floats.
author jimtla
date Fri, 30 Jul 2010 23:18:35 +0400
parents 641c13b0ce5f
children f8431f66613d
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 29 12:26:59 2010 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Jul 30 23:18:35 2010 +0400
@@ -27,7 +27,6 @@
 #include "../../events/SDL_mouse_c.h"
 #include "../../events/SDL_touch_c.h"
 #include "../../events/SDL_windowevents_c.h"
-
 #include "SDL_cocoavideo.h"
 
 static __inline__ void ConvertNSRect(NSRect *r)
@@ -299,7 +298,7 @@
     while (touch) {
         long touchId = (long)[touch device];
         if (!SDL_GetTouch(touchId)) {
-	  printf("Adding touch: %i\n",touchId)
+	  printf("Adding touch: %li\n",touchId);
             SDL_Touch touch;
 
             touch.id = touchId;
@@ -316,7 +315,7 @@
             if (SDL_AddTouch(&touch, "") < 0) {
                 continue;
             }
-	    printf("Success, added touch: %i\n",touchId)
+	    printf("Success, added touch: %lin",touchId);
         } 
         float x = [touch normalizedPosition].x;
         float y = [touch normalizedPosition].y;