private Touch . Event . Impl [ ] parseMotionEvent ( MotionEvent event , Events . Flags flags ) { int eventPointerCount = event . getPointerCount ( ) ; Touch . Event . Impl [ ] touches = new Touch . Event . Impl [ eventPointerCount ] ; double time = event . getEventTime ( ) ; float pressure , size ; int id ; for ( int t = 0 ; t < eventPointerCount ; t ++ ) { int pointerIndex = t ; IPoint xy = platform . graphics ( ) . transformTouch ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; pressure = event . getPressure ( pointerIndex ) ; size = event . getSize ( pointerIndex ) ; id = event . getPointerId ( pointerIndex ) ; touches [ t ] = new Touch . Event . Impl ( flags , time , xy . x ( ) , xy . y ( ) , id , pressure , size ) ; } return touches ; }
Performs the actual parsing of the MotionEvent event .