Commit 136af1fb authored by kenan's avatar kenan

pause

parent 2fcc88ae
...@@ -266,13 +266,16 @@ public class YGOMobileActivity extends NativeActivity implements ...@@ -266,13 +266,16 @@ public class YGOMobileActivity extends NativeActivity implements
view.setOnTouchListener(new View.OnTouchListener() { view.setOnTouchListener(new View.OnTouchListener() {
@Override @Override
public boolean onTouch(View v,final MotionEvent event) { public boolean onTouch(View v,final MotionEvent event) {
if(mPaused){
return false;
}
int eventType = event.getAction() & MotionEvent.ACTION_MASK; int eventType = event.getAction() & MotionEvent.ACTION_MASK;
switch (eventType) { switch (eventType) {
case MotionEvent.ACTION_DOWN: case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_POINTER_DOWN: // case MotionEvent.ACTION_POINTER_DOWN:
case MotionEvent.ACTION_MOVE: case MotionEvent.ACTION_MOVE:
case MotionEvent.ACTION_UP: case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_POINTER_UP: // case MotionEvent.ACTION_POINTER_UP:
case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_CANCEL:
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment