src/video/cocoa/SDL_cocoawindow.m
changeset 6953 b83579d7d19a
parent 6951 7833f01322b3
child 7037 3fedf1f25b94
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 03 08:32:08 2013 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 03 08:41:50 2013 -0800
     1.3 @@ -408,14 +408,14 @@
     1.4      enumerator = [touches objectEnumerator];
     1.5      touch = (NSTouch*)[enumerator nextObject];
     1.6      while (touch) {
     1.7 -        const SDL_TouchID touchId = (SDL_TouchID)[touch device];
     1.8 +        const SDL_TouchID touchId = (SDL_TouchID)(intptr_t)[touch device];
     1.9          if (!SDL_GetTouch(touchId)) {
    1.10              if (SDL_AddTouch(touchId, "") < 0) {
    1.11                  return;
    1.12              }
    1.13          } 
    1.14  
    1.15 -        const SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
    1.16 +        const SDL_FingerID fingerId = (SDL_FingerID)(intptr_t)[touch identity];
    1.17          float x = [touch normalizedPosition].x;
    1.18          float y = [touch normalizedPosition].y;
    1.19          /* Make the origin the upper left instead of the lower left */