src/events/SDL_gesture.c
changeset 10609 d702ecbd8ba7
parent 10123 d2686deec646
child 10737 3406a0f8b041
equal deleted inserted replaced
10608:8661c956c368 10609:d702ecbd8ba7
    69     SDL_DollarTemplate *dollarTemplate;
    69     SDL_DollarTemplate *dollarTemplate;
    70 
    70 
    71     SDL_bool recording;
    71     SDL_bool recording;
    72 } SDL_GestureTouch;
    72 } SDL_GestureTouch;
    73 
    73 
    74 SDL_GestureTouch *SDL_gestureTouch;
    74 static SDL_GestureTouch *SDL_gestureTouch;
    75 int SDL_numGestureTouches = 0;
    75 static int SDL_numGestureTouches = 0;
    76 SDL_bool recordAll;
    76 static SDL_bool recordAll;
    77 
    77 
    78 #if 0
    78 #if 0
    79 static void PrintPath(SDL_FloatPoint *path)
    79 static void PrintPath(SDL_FloatPoint *path)
    80 {
    80 {
    81     int i;
    81     int i;
   466             return &SDL_gestureTouch[i];
   466             return &SDL_gestureTouch[i];
   467     }
   467     }
   468     return NULL;
   468     return NULL;
   469 }
   469 }
   470 
   470 
   471 int SDL_SendGestureMulti(SDL_GestureTouch* touch,float dTheta,float dDist)
   471 static int SDL_SendGestureMulti(SDL_GestureTouch* touch,float dTheta,float dDist)
   472 {
   472 {
   473     SDL_Event event;
   473     SDL_Event event;
   474     event.mgesture.type = SDL_MULTIGESTURE;
   474     event.mgesture.type = SDL_MULTIGESTURE;
   475     event.mgesture.touchId = touch->id;
   475     event.mgesture.touchId = touch->id;
   476     event.mgesture.x = touch->centroid.x;
   476     event.mgesture.x = touch->centroid.x;