src/events/SDL_gesture.c
changeset 6068 c0a928f55a19
parent 6067 9a8faef6fdbe
child 6069 fbb37897c788
equal deleted inserted replaced
6067:9a8faef6fdbe 6068:c0a928f55a19
   225         if (SDL_RWread(src,templ.path,sizeof(templ.path[0]),DOLLARNPOINTS) <
   225         if (SDL_RWread(src,templ.path,sizeof(templ.path[0]),DOLLARNPOINTS) <
   226            DOLLARNPOINTS) break;
   226            DOLLARNPOINTS) break;
   227 
   227 
   228         if (touchId >= 0) {
   228         if (touchId >= 0) {
   229             //printf("Adding loaded gesture to 1 touch\n");
   229             //printf("Adding loaded gesture to 1 touch\n");
   230             if (SDL_AddDollarGesture(touch,templ.path)) loaded++;
   230             if (SDL_AddDollarGesture(touch, templ.path) >= 0)
       
   231                 loaded++;
   231         }
   232         }
   232         else {
   233         else {
   233             //printf("Adding to: %i touches\n",SDL_numGestureTouches);
   234             //printf("Adding to: %i touches\n",SDL_numGestureTouches);
   234             for (i = 0; i < SDL_numGestureTouches; i++) {
   235             for (i = 0; i < SDL_numGestureTouches; i++) {
   235                 touch = &SDL_gestureTouch[i];
   236                 touch = &SDL_gestureTouch[i];