Project

General

Profile

« Previous | Next » 

Revision 565d139b

Added by Leszek Koltunski about 2 years ago

Bandaged 3x3: support for obejct control in the Play Screen.

View differences:

src/main/java/org/distorted/bandaged/BandagedPlayView.java
19 19

  
20 20
package org.distorted.bandaged;
21 21

  
22
import android.annotation.SuppressLint;
22 23
import android.app.ActivityManager;
23 24
import android.content.Context;
24 25
import android.content.pm.ConfigurationInfo;
25 26
import android.opengl.GLES30;
26 27
import android.opengl.GLSurfaceView;
27 28
import android.util.AttributeSet;
29
import android.view.MotionEvent;
28 30

  
29 31
import com.google.firebase.crashlytics.FirebaseCrashlytics;
30 32

  
31 33
import org.distorted.objectlib.main.ObjectControl;
32 34
import org.distorted.objectlib.main.TwistyObjectNode;
33 35

  
36
import static org.distorted.objectlib.main.ObjectControl.MODE_ROTATE;
37

  
34 38
///////////////////////////////////////////////////////////////////////////////////////////////////
35 39

  
36 40
public class BandagedPlayView extends GLSurfaceView
......
135 139
      super.onResume();
136 140
      mObjectController.onResume();
137 141
      }
142

  
143
///////////////////////////////////////////////////////////////////////////////////////////////////
144

  
145
    @SuppressLint("ClickableViewAccessibility")
146
    @Override
147
    public boolean onTouchEvent(MotionEvent event)
148
      {
149
      return mObjectController.onTouchEvent(event,MODE_ROTATE);
150
      }
138 151
}
139 152

  

Also available in: Unified diff