Code example for MotionEvent

Methods: offsetLocation

0
        c.setAction(MotionEvent.ACTION_CANCEL);
        return c;
    } 
 
    private void openPie() { 
        mDown.offsetLocation(-mOverlay.getWindowPositionX(),
                -mOverlay.getWindowPositionY());
        mOverlay.directDispatchTouch(mDown, mPie);
    } 
 
    private void cancelPie() { 
        mHandler.removeMessages(MSG_PIE);
    } 
 
    private boolean sendToPie(MotionEvent m) {
        m.offsetLocation(-mOverlay.getWindowPositionX(),
                -mOverlay.getWindowPositionY());
        return mOverlay.directDispatchTouch(m, mPie);
    } 
 
    @Override