comparison src/events/SDL_gesture.c @ 4686:463cd74304b9

Removed some debug prints.
author Jim Grandpre <jim.tla@gmail.com>
date Sat, 07 Aug 2010 11:35:24 -0400
parents e0c3b09368a6
children 494f71f57a80
comparison
equal deleted inserted replaced
4685:e0c3b09368a6 4686:463cd74304b9
380 380
381 float dollarRecognize(DollarPath path,int *bestTempl,GestureTouch* touch) { 381 float dollarRecognize(DollarPath path,int *bestTempl,GestureTouch* touch) {
382 382
383 Point points[DOLLARNPOINTS]; 383 Point points[DOLLARNPOINTS];
384 int numPoints = dollarNormalize(path,points); 384 int numPoints = dollarNormalize(path,points);
385 SDL_PrintPath(points); 385 //SDL_PrintPath(points);
386 int i; 386 int i;
387 387
388 int bestDiff = 10000; 388 int bestDiff = 10000;
389 *bestTempl = -1; 389 *bestTempl = -1;
390 for(i = 0;i < touch->numDollarTemplates;i++) { 390 for(i = 0;i < touch->numDollarTemplates;i++) {
485 #ifdef ENABLE_DOLLAR 485 #ifdef ENABLE_DOLLAR
486 if(inTouch->recording) { 486 if(inTouch->recording) {
487 inTouch->recording = SDL_FALSE; 487 inTouch->recording = SDL_FALSE;
488 Point path[DOLLARNPOINTS]; 488 Point path[DOLLARNPOINTS];
489 dollarNormalize(inTouch->dollarPath,path); 489 dollarNormalize(inTouch->dollarPath,path);
490 SDL_PrintPath(path); 490 //SDL_PrintPath(path);
491 int index; 491 int index;
492 if(recordAll) { 492 if(recordAll) {
493 index = SDL_AddDollarGesture(NULL,path); 493 index = SDL_AddDollarGesture(NULL,path);
494 int i; 494 int i;
495 for(i = 0;i < numGestureTouches; i++) 495 for(i = 0;i < numGestureTouches; i++)