public static void disableTouchEvents() { OFGLSurfaceView glView = OFAndroid.getGLView(); if (glView != null) { glView.setOnClickListener(null); glView.setOnTouchListener(null); } }
public static void enableTouchEvents() { OFGLSurfaceView glView = OFAndroid.getGLView(); if (glView != null) { if (gestureListener == null) gestureListener = new OFGestureListener(ofActivity); glView.setOnClickListener(gestureListener); glView.setOnTouchListener(gestureListener.touchListener); } }
public void enableTouchEvents() { mGLView.setOnClickListener(gestureListener); mGLView.setOnTouchListener(gestureListener.touchListener); }
public void disableTouchEvents() { mGLView.setOnClickListener(null); mGLView.setOnTouchListener(null); }
public static void enableTouchEvents() { if (mGLView != null) { mGLView.setOnClickListener(gestureListener); mGLView.setOnTouchListener(gestureListener.touchListener); } }
public static boolean isApplicationSetup() { OFGLSurfaceView glView = OFAndroid.getGLView(); return glView != null && glView.isSetup(); }