diff src/video/cocoa/SDL_cocoawindow.m @ 4678:f8431f66613d

Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
author jimtla
date Sat, 31 Jul 2010 20:02:54 +0400
parents 99b4560b7aa1
children 5ee96ba0c01e
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Sat Jul 31 01:24:50 2010 +0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Jul 31 20:02:54 2010 +0400
@@ -304,13 +304,13 @@
             touch.id = touchId;
             touch.x_min = 0;
             touch.x_max = 1;
-            touch.xres = touch.x_max - touch.x_min;
+            touch.native_xres = touch.x_max - touch.x_min;
             touch.y_min = 0;
             touch.y_max = 1;
-            touch.yres = touch.y_max - touch.y_min;
+            touch.native_yres = touch.y_max - touch.y_min;
             touch.pressure_min = 0;
             touch.pressure_max = 1;
-            touch.pressureres = touch.pressure_max - touch.pressure_min;
+            touch.native_pressureres = touch.pressure_max - touch.pressure_min;
             
             if (SDL_AddTouch(&touch, "") < 0) {
                 continue;