switch (event.getAction()) {
case MotionEvent.ACTION_MOVE:
float x = event.getX();
float y = event.getY();
long t = event.getEventTime();
synchronized(this) {
mDT = t - mT;
mT = t;
mDX = x - mX;
mX = x;
mDY = y - mY;
mY = y;
}
break;
default:
break;
}
return true;