Code example for RectF

Methods: centerX, centerY

0
	        	prevEvent.recycle();
	        	prevEvent = MotionEvent.obtain(e2);				
 
	        	// send move notification 
	        	RectF rect = getCurrentPointerArea(POINTER_ACTION_CURSOR);
	        	listener.onTouchPointerMove((int)rect.centerX(), (int)rect.centerY());
	            return true; 
			} 
			else if(pointerScrolling)
			{ 
				// calc if user scrolled up or down (or if any scrolling happened at all)  
				float deltaY = e2.getY() - prevEvent.getY();
				if(deltaY > SCROLL_DELTA)
				{ 
					listener.onTouchPointerScroll(true);
					prevEvent.recycle();
					prevEvent = MotionEvent.obtain(e2);
				} 
				else if(deltaY < -SCROLL_DELTA)
				{ 
					listener.onTouchPointerScroll(false);