/// <summary> /// Checks the touchpad input of the controller and acts accordingly: /// -# Left: changes to previous panel if in panel mode /// -# Right: changes to next panel if in panel mode /// -# Top: changes between GUI modes /// -# Bottom: changes the page of the current panel if in panel mode /// </summary> /// <param name="touchpadStatus"></param> public void CheckTouchPad(InputManager.TouchpadStatus touchpadStatus) { //switch (touchpadStatus) //{ // case InputManager.TouchpadStatus.Left: // changeToPreviousMode(); // break; // case InputManager.TouchpadStatus.Right: // changepanelsToNextMode(); // break; // case InputManager.TouchpadStatus.Top: // StartCoroutine(changeGUIMode()); // break; // case InputManager.TouchpadStatus.Bottom: // changePageOfPanel(); // break; //} }
/// <summary> /// Checks the touchpad input of the controller and acts accordingly: /// -# Left: changes to previous panel if in panel mode /// -# Right: changes to next panel if in panel mode /// -# Top: changes between GUI modes /// -# Bottom: changes the page of the current panel if in panel mode /// </summary> /// <param name="touchpadStatus"></param> public void CheckTouchPad(InputManager.TouchpadStatus touchpadStatus) { switch (touchpadStatus) { case InputManager.TouchpadStatus.Left: changeToPreviousMode(); break; case InputManager.TouchpadStatus.Right: changepanelsToNextMode(); break; case InputManager.TouchpadStatus.Top: StartCoroutine(changeGUIMode()); break; case InputManager.TouchpadStatus.Bottom: changePageOfPanel(); break; } }
/// <summary> /// Checks the touchpad input of the controller and acts accordingly: /// -# Left: changes to previous panel if in panel mode /// -# Right: changes to next panel if in panel mode /// -# Top: changes between GUI modes /// -# Bottom: changes the page of the current panel if in panel mode /// </summary> /// <param name="touchpadStatus"></param> public void CheckTouchPad(InputManager.TouchpadStatus touchpadStatus) { switch (touchpadStatus) { case InputManager.TouchpadStatus.Left: changeToPreviousMode(); break; case InputManager.TouchpadStatus.Right: changepanelsToNextMode(); break; case InputManager.TouchpadStatus.Top: if (ModeManager.Instance.CurrentGUIMode == ModeManager.GUIMode.GUIViewer) { StartCoroutine(changeGUIViewerMode()); } break; case InputManager.TouchpadStatus.Bottom: changePageOfPanel(); break; } }