Added better logging
This commit is contained in:
parent
a4a0897a1d
commit
6ed8759bcc
1 changed files with 2 additions and 0 deletions
|
@ -299,6 +299,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
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 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
if (SDL_AddTouch(&touch, "") < 0) {
|
||||
continue;
|
||||
}
|
||||
printf("Success, added touch: %i\n",touchId)
|
||||
}
|
||||
float x = [touch normalizedPosition].x;
|
||||
float y = [touch normalizedPosition].y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue