src/video/cocoa/SDL_cocoawindow.m
changeset 4674 89d5e2201b00
parent 4673 c17ac64abb70
child 4675 641c13b0ce5f
equal deleted inserted replaced
4673:c17ac64abb70 4674:89d5e2201b00
   311             touch.pressure_min = 0;
   311             touch.pressure_min = 0;
   312             touch.pressure_max = 1;
   312             touch.pressure_max = 1;
   313             touch.pressureres = touch.pressure_max - touch.pressure_min;
   313             touch.pressureres = touch.pressure_max - touch.pressure_min;
   314             
   314             
   315             if (SDL_AddTouch(&touch, "") < 0) {
   315             if (SDL_AddTouch(&touch, "") < 0) {
   316                 return; 
   316                 continue;
   317             }
   317             }
   318         } 
   318         } 
   319         float x = [touch normalizedPosition].x;
   319         float x = [touch normalizedPosition].x;
   320         float y = [touch normalizedPosition].y;
   320         float y = [touch normalizedPosition].y;
   321         long fingerId = (long)[touch identity];
   321         long fingerId = (long)[touch identity];