@@ -64,7 +64,6 @@ public class AxmolGLSurfaceView extends GLSurfaceView {
64
64
65
65
private boolean mSoftKeyboardShown = false ;
66
66
private boolean mMultipleTouchEnabled = true ;
67
- private boolean mInteractive = true ;
68
67
69
68
private CountDownLatch mNativePauseComplete ;
70
69
@@ -84,14 +83,6 @@ public void setMultipleTouchEnabled(boolean multipleTouchEnabled) {
84
83
this .mMultipleTouchEnabled = multipleTouchEnabled ;
85
84
}
86
85
87
- public boolean isInteractive () {
88
- return mInteractive ;
89
- }
90
-
91
- public void setInteractive (boolean interactive ) {
92
- this .mInteractive = interactive ;
93
- }
94
-
95
86
// ===========================================================
96
87
// Constructors
97
88
// ===========================================================
@@ -223,10 +214,6 @@ public boolean onTouchEvent(final MotionEvent pMotionEvent) {
223
214
224
215
switch (pMotionEvent .getAction () & MotionEvent .ACTION_MASK ) {
225
216
case MotionEvent .ACTION_POINTER_DOWN :
226
- if (!mInteractive ) {
227
- break ;
228
- }
229
-
230
217
final int indexPointerDown = pMotionEvent .getAction () >> MotionEvent .ACTION_POINTER_INDEX_SHIFT ;
231
218
if (!mMultipleTouchEnabled && indexPointerDown != 0 ) {
232
219
break ;
@@ -244,10 +231,6 @@ public void run() {
244
231
break ;
245
232
246
233
case MotionEvent .ACTION_DOWN :
247
- if (!mInteractive ) {
248
- break ;
249
- }
250
-
251
234
// there are only one finger on the screen
252
235
final int idDown = pMotionEvent .getPointerId (0 );
253
236
final float xDown = xs [0 ];
@@ -368,10 +351,6 @@ protected void onSizeChanged(final int pNewSurfaceWidth, final int pNewSurfaceHe
368
351
369
352
@ Override
370
353
public boolean onKeyDown (final int pKeyCode , final KeyEvent pKeyEvent ) {
371
- if (!mInteractive ) {
372
- return false ;
373
- }
374
-
375
354
switch (pKeyCode ) {
376
355
case KeyEvent .KEYCODE_BACK :
377
356
case KeyEvent .KEYCODE_MENU :
@@ -396,10 +375,6 @@ public void run() {
396
375
397
376
@ Override
398
377
public boolean onKeyUp (final int keyCode , KeyEvent event ) {
399
- if (!mInteractive ) {
400
- return false ;
401
- }
402
-
403
378
switch (keyCode ) {
404
379
case KeyEvent .KEYCODE_BACK :
405
380
case KeyEvent .KEYCODE_MENU :
0 commit comments