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