comparison src/events/SDL_touch.c @ 4681:5378f2d0754f

Fixed some Gesture bugs
author Jim Grandpre <jim.tla@gmail.com>
date Mon, 02 Aug 2010 00:14:53 -0400
parents 5ee96ba0c01e
children 15dfe42edbfd
comparison
equal deleted inserted replaced
4680:229529693289 4681:5378f2d0754f
390 } 390 }
391 391
392 //scale to Integer coordinates 392 //scale to Integer coordinates
393 Uint16 x = (xin+touch->x_min)*(touch->xres)/(touch->native_xres); 393 Uint16 x = (xin+touch->x_min)*(touch->xres)/(touch->native_xres);
394 Uint16 y = (yin+touch->y_min)*(touch->yres)/(touch->native_yres); 394 Uint16 y = (yin+touch->y_min)*(touch->yres)/(touch->native_yres);
395 Uint16 pressure = (yin+touch->pressure_min)*(touch->pressureres)/(touch->native_pressureres); 395 Uint16 pressure = (yin+touch->pressure_min)*(touch->pressureres)/(touch->native_pressureres);
396 printf("(%f,%f) --> (%i,%i)\n",xin,yin,x,y);
397 if(touch->flush_motion) { 396 if(touch->flush_motion) {
398 return 0; 397 return 0;
399 } 398 }
400 399
401 if(finger == NULL || !finger->down) { 400 if(finger == NULL || !finger->down) {