How to detect touch events within a certain Renderer-area in android?
问题 In android I have taken a rotating sphere example given here. It creates a simple app showing a rotating sphere (the earth). Now, I want to do something if the rotating sphere is pressed on the phone display. I do not want to react to touch events outside of the rotating sphere. Here is what I have tried so far, by using a derived version of the GLSurfaceView : public class MyGLSurfaceView extends GLSurfaceView { MyGLSurfaceView(Context context) { super(context); } public boolean onTouchEvent