Exemple #1
0
 public static void disableTouchEvents() {
   OFGLSurfaceView glView = OFAndroid.getGLView();
   if (glView != null) {
     glView.setOnClickListener(null);
     glView.setOnTouchListener(null);
   }
 }
Exemple #2
0
 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);
 }
Exemple #5
0
 public static void enableTouchEvents() {
   if (mGLView != null) {
     mGLView.setOnClickListener(gestureListener);
     mGLView.setOnTouchListener(gestureListener.touchListener);
   }
 }
Exemple #6
0
 public static boolean isApplicationSetup() {
   OFGLSurfaceView glView = OFAndroid.getGLView();
   return glView != null && glView.isSetup();
 }