示例#1
0
 @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);
   }
 }
示例#2
0
 public boolean dispatchKeyEvent(KeyEvent event) {
   return mInputManager.dispatchKeyEvent(event);
 }
示例#3
0
 public boolean dispatchMotionEvent(MotionEvent event) {
   return mInputManager.dispatchMotionEvent(event);
 }
示例#4
0
 /** The final call you receive before your activity is destroyed. */
 void onDestroy() {
   Log.v(TAG, "onDestroy");
   mRotationSensor.onDestroy();
   mInputManager.close();
 }