--- a/src/video/cocoa/SDL_cocoawindow.m Sat Aug 07 11:35:24 2010 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m Fri Aug 13 17:05:06 2010 -0700
@@ -330,9 +330,13 @@
return;
}
}
+
+ SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y;
- SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
+ /* Make the origin the upper left instead of the lower left */
+ y = 1.0f - y;
+
switch (type) {
case COCOA_TOUCH_DOWN:
SDL_SendFingerDown(touchId, fingerId, SDL_TRUE, x, y, 1);