I’ve got an onTouchEvent boolean on a Surfaceview, I’ve got openGL objects drawn on the view and I’m wondering is there anyway to detect where on the screen the onTouch happened? e.g (x,y) co-ordinates.
I’ve got an onTouchEvent boolean on a Surfaceview, I’ve got openGL objects drawn on
Share
Use event.getX() and event.getY() assuming that you have the following method signature: