TajiModule/src/main/java/com/jxlc/tajimodule/UnityPlayerActivity.java
// Force event injection by overriding dispatchKeyEvent().
Force event injection by overriding dispatchKeyEvent().
Force event injection by overriding dispatchKeyEvent () .
@Override public boolean dispatchKeyEvent(KeyEvent event)
	{
		if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && event.getAction() != KeyEvent.ACTION_UP) {
			finish();
			return true;
		}
		if (event.getAction() == KeyEvent.ACTION_MULTIPLE) {
			return mUnityPlayer.injectEvent(event);
		}
		return super.dispatchKeyEvent(event);
	}
@ Override public boolean dispatchKeyEvent ( KeyEvent event ) { if ( event . getKeyCode ( ) == KeyEvent . KEYCODE_BACK && event . getAction ( ) != KeyEvent . ACTION_UP ) { finish ( ) ; return true ; } if ( event . getAction ( ) == KeyEvent . ACTION_MULTIPLE ) { return mUnityPlayer . injectEvent ( event ) ; } return super . dispatchKeyEvent ( event ) ; }
Force event injection by overriding dispatchKeyEvent().
Force event injection by overriding dispatchKeyEvent () .