src/events/SDL_gesture.c
changeset 9791 bf1504455f2a
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9790:d968c87f2a5d 9791:bf1504455f2a
   647             /* inTouch->gestureLast[j].f.p.x = x;
   647             /* inTouch->gestureLast[j].f.p.x = x;
   648             inTouch->gestureLast[j].f.p.y = y;
   648             inTouch->gestureLast[j].f.p.y = y;
   649             break;
   649             break;
   650             pressure? */
   650             pressure? */
   651         }
   651         }
   652 
   652         else if (event->type == SDL_FINGERDOWN) {
   653         if (event->type == SDL_FINGERDOWN) {
       
   654 
   653 
   655             inTouch->numDownFingers++;
   654             inTouch->numDownFingers++;
   656             inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+
   655             inTouch->centroid.x = (inTouch->centroid.x*(inTouch->numDownFingers - 1)+
   657                                    x)/inTouch->numDownFingers;
   656                                    x)/inTouch->numDownFingers;
   658             inTouch->centroid.y = (inTouch->centroid.y*(inTouch->numDownFingers - 1)+
   657             inTouch->centroid.y = (inTouch->centroid.y*(inTouch->numDownFingers - 1)+