test/testgesture.c
changeset 8917 23182cf59f1c
parent 8883 0700ef83072a
child 9235 ba9988f0daec
equal deleted inserted replaced
8916:96d944f74851 8917:23182cf59f1c
   242           }
   242           }
   243             }
   243             }
   244         break;
   244         break;
   245       case SDL_FINGERMOTION:
   245       case SDL_FINGERMOTION:
   246 #if VERBOSE
   246 #if VERBOSE
   247         SDL_Log("Finger: %"PRIs64",x: %f, y: %f",event.tfinger.fingerId,
   247         SDL_Log("Finger: %"SDL_PRIs64",x: %f, y: %f",event.tfinger.fingerId,
   248                event.tfinger.x,event.tfinger.y);
   248                event.tfinger.x,event.tfinger.y);
   249 #endif
   249 #endif
   250         break;
   250         break;
   251       case SDL_FINGERDOWN:
   251       case SDL_FINGERDOWN:
   252 #if VERBOSE
   252 #if VERBOSE
   253         SDL_Log("Finger: %"PRIs64" down - x: %f, y: %f",
   253         SDL_Log("Finger: %"SDL_PRIs64" down - x: %f, y: %f",
   254            event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
   254            event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
   255 #endif
   255 #endif
   256         break;
   256         break;
   257       case SDL_FINGERUP:
   257       case SDL_FINGERUP:
   258 #if VERBOSE
   258 #if VERBOSE
   259         SDL_Log("Finger: %"PRIs64" up - x: %f, y: %f",
   259         SDL_Log("Finger: %"SDL_PRIs64" up - x: %f, y: %f",
   260                event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
   260                event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
   261 #endif
   261 #endif
   262         break;
   262         break;
   263       case SDL_MULTIGESTURE:
   263       case SDL_MULTIGESTURE:
   264 #if VERBOSE
   264 #if VERBOSE
   273         knob.p.y = event.mgesture.y;
   273         knob.p.y = event.mgesture.y;
   274         knob.ang += event.mgesture.dTheta;
   274         knob.ang += event.mgesture.dTheta;
   275         knob.r += event.mgesture.dDist;
   275         knob.r += event.mgesture.dDist;
   276         break;
   276         break;
   277       case SDL_DOLLARGESTURE:
   277       case SDL_DOLLARGESTURE:
   278         SDL_Log("Gesture %"PRIs64" performed, error: %f",
   278         SDL_Log("Gesture %"SDL_PRIs64" performed, error: %f",
   279            event.dgesture.gestureId,
   279            event.dgesture.gestureId,
   280            event.dgesture.error);
   280            event.dgesture.error);
   281         break;
   281         break;
   282       case SDL_DOLLARRECORD:
   282       case SDL_DOLLARRECORD:
   283         SDL_Log("Recorded gesture: %"PRIs64"",event.dgesture.gestureId);
   283         SDL_Log("Recorded gesture: %"SDL_PRIs64"",event.dgesture.gestureId);
   284         break;
   284         break;
   285       }
   285       }
   286       }
   286       }
   287     DrawScreen(screen);
   287     DrawScreen(screen);
   288   }
   288   }