Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added better logging

  • Loading branch information
jimtla committed Jul 29, 2010
1 parent 9a69cda commit 15e0ee70657dab3605759f4665544b1a7581153c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/video/cocoa/SDL_cocoawindow.m
@@ -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;
@@ -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;

0 comments on commit 15e0ee7

Please sign in to comment.