Searched refs:newPointerIdx (Results 1 – 4 of 4) sorted by relevance
147 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onTouchEvent() local149 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent()150 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent()151 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent()152 mActivePointerId = ev.getPointerId(newPointerIdx); in onTouchEvent()
143 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onMotionEvent() local145 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()146 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()147 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()148 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()
226 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onMotionEvent() local228 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()229 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()230 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()231 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()
94 final int newPointerIdx = pointerIndex == 0 ? 1 : 0; in onMotionEvent() local97 mDownY = ev.getY(newPointerIdx); in onMotionEvent()98 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()