标签:event return android OLE 返回 目的 amp onkeydown 返回键
@Override public boolean dispatchKeyEvent(KeyEvent event) { //返回键 cocosActivity不相应onbackPressed和onKeyDown if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN){ LogUtils.i("dispatchKeyEvent"); getMainState(); } return super.dispatchKeyEvent(event); }
标签:event return android OLE 返回 目的 amp onkeydown 返回键
原文地址:https://www.cnblogs.com/wycstudy/p/9636485.html