GetButton() 공개 메소드

public GetButton ( ) : BaseController.eButtonId>.Dictionary
리턴 BaseController.eButtonId>.Dictionary
예제 #1
0
 /// <summary>
 ///
 /// </summary>
 protected virtual void Update()
 {
     if (canRecenter)
     {
         if (ControllerInputManager.GetButtonDown(ControllerType.Controller, (uint)XimmerseButton.Home))
         {
             m_HomeIsDownLastTime = Time.time;
         }
         if (Input.GetKeyDown(KeyCode.R) || (ControllerInputManager.GetButton(ControllerType.Controller, (uint)XimmerseButton.Home) && Time.time - m_HomeIsDownLastTime > 1.0f))
         {
             Recenter(true);
         }
     }
 }