src/events/SDL_gesture.c
changeset 8296 cb13016bf07b
parent 8149 681eb46b8ac4
child 8705 fee2f7e242a1
equal deleted inserted replaced
8295:56f7e38ff0bc 8296:cb13016bf07b
   416         return SDL_OutOfMemory();
   416         return SDL_OutOfMemory();
   417     }
   417     }
   418 
   418 
   419     SDL_gestureTouch = gestureTouch;
   419     SDL_gestureTouch = gestureTouch;
   420 
   420 
   421     SDL_gestureTouch[SDL_numGestureTouches].numDownFingers = 0;
   421     SDL_zero(SDL_gestureTouch[SDL_numGestureTouches]);
   422     SDL_gestureTouch[SDL_numGestureTouches].id = touchId;
   422     SDL_gestureTouch[SDL_numGestureTouches].id = touchId;
   423 
       
   424     SDL_gestureTouch[SDL_numGestureTouches].numDollarTemplates = 0;
       
   425 
       
   426     SDL_gestureTouch[SDL_numGestureTouches].recording = SDL_FALSE;
       
   427 
       
   428     SDL_numGestureTouches++;
   423     SDL_numGestureTouches++;
   429     return 0;
   424     return 0;
   430 }
   425 }
   431 
   426 
   432 static SDL_GestureTouch * SDL_GetGestureTouch(SDL_TouchID id)
   427 static SDL_GestureTouch * SDL_GetGestureTouch(SDL_TouchID id)