Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtla committed Jul 29, 2010
1 parent 9a69cda commit 15e0ee7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -299,6 +299,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
while (touch) {
long touchId = (long)[touch device];
if (!SDL_GetTouch(touchId)) {
printf("Adding touch: %i\n",touchId)
SDL_Touch touch;

touch.id = touchId;
Expand All @@ -315,6 +316,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
if (SDL_AddTouch(&touch, "") < 0) {
continue;
}
printf("Success, added touch: %i\n",touchId)
}
float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y;
Expand Down

0 comments on commit 15e0ee7

Please sign in to comment.