src/video/cocoa/SDL_cocoawindow.m
changeset 4687 257bdf117af8
parent 4680 229529693289
child 4862 7b1d35d98294
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat Aug 07 11:35:24 2010 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Aug 13 17:05:06 2010 -0700
     1.3 @@ -330,9 +330,13 @@
     1.4                  return;
     1.5              }
     1.6          } 
     1.7 +
     1.8 +        SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
     1.9          float x = [touch normalizedPosition].x;
    1.10          float y = [touch normalizedPosition].y;
    1.11 -        SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
    1.12 +	/* Make the origin the upper left instead of the lower left */
    1.13 +	y = 1.0f - y;
    1.14 +
    1.15          switch (type) {
    1.16          case COCOA_TOUCH_DOWN:
    1.17              SDL_SendFingerDown(touchId, fingerId, SDL_TRUE, x, y, 1);