Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoawindow.m @ 4675:641c13b0ce5f
Added better logging
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Thu, 29 Jul 2010 12:26:59 -0400 |
parents | 89d5e2201b00 |
children | 99b4560b7aa1 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m Thu Jul 29 12:24:34 2010 -0400 +++ b/src/video/cocoa/SDL_cocoawindow.m Thu Jul 29 12:26:59 2010 -0400 @@ -299,6 +299,7 @@ while (touch) { long touchId = (long)[touch device]; if (!SDL_GetTouch(touchId)) { + printf("Adding touch: %i\n",touchId) SDL_Touch touch; touch.id = touchId; @@ -315,6 +316,7 @@ if (SDL_AddTouch(&touch, "") < 0) { continue; } + printf("Success, added touch: %i\n",touchId) } float x = [touch normalizedPosition].x; float y = [touch normalizedPosition].y;