Mercurial > sdl-ios-xcode
comparison touchTest/gestureSDLTest.c @ 4683:15dfe42edbfd
Fixed gestureMulti. Disabled dollar gesture temporarily.
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Wed, 04 Aug 2010 23:17:30 -0400 |
parents | 4ba1048a324c |
children | 494f71f57a80 |
comparison
equal
deleted
inserted
replaced
4682:4ba1048a324c | 4683:15dfe42edbfd |
---|---|
412 finger[i].p.x = -1; | 412 finger[i].p.x = -1; |
413 finger[i].p.y = -1; | 413 finger[i].p.y = -1; |
414 */ | 414 */ |
415 break; | 415 break; |
416 case SDL_MULTIGESTURE: | 416 case SDL_MULTIGESTURE: |
417 /* | |
417 printf("Multi Gesture: x = %f, y = %f, dAng = %f, dR = %f\n", | 418 printf("Multi Gesture: x = %f, y = %f, dAng = %f, dR = %f\n", |
418 event.mgesture.x, | 419 event.mgesture.x, |
419 event.mgesture.y, | 420 event.mgesture.y, |
420 event.mgesture.dTheta, | 421 event.mgesture.dTheta, |
421 event.mgesture.dDist); | 422 event.mgesture.dDist); |
423 printf("MG: numDownTouch = %i\n",event.mgesture.numFingers); | |
424 */ | |
422 knob.p.x = event.mgesture.x; | 425 knob.p.x = event.mgesture.x; |
423 knob.p.y = event.mgesture.y; | 426 knob.p.y = event.mgesture.y; |
424 knob.ang += event.mgesture.dTheta; | 427 knob.ang += event.mgesture.dTheta; |
425 knob.r += event.mgesture.dDist; | 428 knob.r += event.mgesture.dDist; |
426 break; | 429 break; |
433 printf("Recorded gesture: %"PRIs64"\n",event.dgesture.gestureId); | 436 printf("Recorded gesture: %"PRIs64"\n",event.dgesture.gestureId); |
434 break; | 437 break; |
435 } | 438 } |
436 } | 439 } |
437 DrawScreen(screen,h); | 440 DrawScreen(screen,h); |
438 for(i = 0; i < 256; i++) | 441 //for(i = 0; i < 256; i++) |
439 if(keystat[i]) | 442 // if(keystat[i]) |
440 printf("Key %i down\n",i); | 443 // printf("Key %i down\n",i); |
441 } | 444 } |
442 SDL_Quit(); | 445 SDL_Quit(); |
443 | 446 |
444 return 0; | 447 return 0; |
445 } | 448 } |