Added better logging
authorJim Grandpre <jim.tla@gmail.com>
Thu, 29 Jul 2010 12:26:59 -0400
changeset 4675641c13b0ce5f
parent 4674 89d5e2201b00
child 4676 99b4560b7aa1
Added better logging
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 29 12:24:34 2010 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 29 12:26:59 2010 -0400
     1.3 @@ -299,6 +299,7 @@
     1.4      while (touch) {
     1.5          long touchId = (long)[touch device];
     1.6          if (!SDL_GetTouch(touchId)) {
     1.7 +	  printf("Adding touch: %i\n",touchId)
     1.8              SDL_Touch touch;
     1.9  
    1.10              touch.id = touchId;
    1.11 @@ -315,6 +316,7 @@
    1.12              if (SDL_AddTouch(&touch, "") < 0) {
    1.13                  continue;
    1.14              }
    1.15 +	    printf("Success, added touch: %i\n",touchId)
    1.16          } 
    1.17          float x = [touch normalizedPosition].x;
    1.18          float y = [touch normalizedPosition].y;