diff --git a/src/com/homelinux/holtrop/opengltest/MyRenderer.java b/src/com/homelinux/holtrop/opengltest/MyRenderer.java index 54d09d9..0988779 100644 --- a/src/com/homelinux/holtrop/opengltest/MyRenderer.java +++ b/src/com/homelinux/holtrop/opengltest/MyRenderer.java @@ -197,13 +197,16 @@ public class MyRenderer implements GLSurfaceView.Renderer public boolean onTouchEvent(MotionEvent e) { - if (e.getAction() == MotionEvent.ACTION_DOWN) + if (e.getAction() == MotionEvent.ACTION_DOWN || + e.getAction() == MotionEvent.ACTION_MOVE) { float x = m_aspect * ((e.getX() / (float) m_width) * 2.0f - 1.0f); float y = -((e.getY() / (float) m_height) * 2.0f - 1.0f); m_x = x; m_y = y; + + return true; } return false;