@Override public synchronized void setMainScene(GVRScene scene) { mMainScene = scene; if (mNextMainScene == scene) { mNextMainScene = null; if (mOnSwitchMainScene != null) { mOnSwitchMainScene.run(); mOnSwitchMainScene = null; } } if (null != mMainScene) { getActivity().setCameraRig(mMainScene.getMainCameraRig()); mInputManager.setScene(mMainScene); } }
public boolean dispatchKeyEvent(KeyEvent event) { return mInputManager.dispatchKeyEvent(event); }
public boolean dispatchMotionEvent(MotionEvent event) { return mInputManager.dispatchMotionEvent(event); }
/** The final call you receive before your activity is destroyed. */ void onDestroy() { Log.v(TAG, "onDestroy"); mRotationSensor.onDestroy(); mInputManager.close(); }