test/testgesture.c
changeset 6951 7833f01322b3
parent 6790 475f0a544157
child 7191 75360622e65f
     1.1 --- a/test/testgesture.c	Sat Mar 02 20:44:16 2013 -0800
     1.2 +++ b/test/testgesture.c	Sun Mar 03 01:01:33 2013 -0800
     1.3 @@ -167,11 +167,8 @@
     1.4      if(event->type == SDL_FINGERMOTION || 
     1.5         event->type == SDL_FINGERDOWN ||
     1.6         event->type == SDL_FINGERUP) {
     1.7 -      SDL_Touch* inTouch = SDL_GetTouch(event->tfinger.touchId);
     1.8 -      if(inTouch == NULL) continue;
     1.9 -
    1.10 -      x = ((float)event->tfinger.x)/inTouch->xres;
    1.11 -      y = ((float)event->tfinger.y)/inTouch->yres;      
    1.12 +      x = event->tfinger.x;
    1.13 +      y = event->tfinger.y;
    1.14        
    1.15        //draw the touch:      
    1.16        c = colors[event->tfinger.fingerId%7]; 
    1.17 @@ -269,10 +266,6 @@
    1.18  	    SDL_Log("Finger: %i,x: %i, y: %i",event.tfinger.fingerId,
    1.19  	    	   event.tfinger.x,event.tfinger.y);
    1.20  #endif
    1.21 -		{
    1.22 -			SDL_Touch* inTouch = SDL_GetTouch(event.tfinger.touchId);
    1.23 -			SDL_Finger* inFinger = SDL_GetFinger(inTouch,event.tfinger.fingerId);
    1.24 -		}
    1.25  	    break;	    
    1.26  	  case SDL_FINGERDOWN:
    1.27  #if VERBOSE