Lines Matching refs:ev
52 override fun onInterceptTouchEvent(ev: MotionEvent): Boolean { in onInterceptTouchEvent()
53 val toIntercept: Boolean = super.onInterceptTouchEvent(flipXY(ev)) in onInterceptTouchEvent()
55 flipXY(ev) in onInterceptTouchEvent()
59 override fun onTouchEvent(ev: MotionEvent): Boolean { in onTouchEvent()
60 val toHandle: Boolean = super.onTouchEvent(flipXY(ev)) in onTouchEvent()
62 flipXY(ev) in onTouchEvent()
66 private fun flipXY(ev: MotionEvent): MotionEvent { in flipXY()
70 val x = ev.y / height * width in flipXY()
71 val y = ev.x / width * height in flipXY()
73 ev.setLocation(x, y) in flipXY()
75 return ev in flipXY()