Exemple #1
0
        private SteamVR_Action_Boolean GetBooleanActionFromMap(TrackedDeviceButton trackedDeviceButton)
        {
            SteamVR_Action_Boolean actionBoolean;

            if (_trackedDeviceButtonsToSteamVrMap.TryGetValue(trackedDeviceButton, out actionBoolean))
            {
                return(actionBoolean);
            }

            Debug.LogErrorFormat("No SteamVR action could be found for button {0}", trackedDeviceButton);
            return(null);
        }
Exemple #2
0
 public bool GetButtonUp(TrackedDeviceButton trackedDeviceButton)
 {
     return(GetBooleanActionFromMap(trackedDeviceButton).GetStateUp(InputSource));
 }