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); }
public bool GetButtonUp(TrackedDeviceButton trackedDeviceButton) { return(GetBooleanActionFromMap(trackedDeviceButton).GetStateUp(InputSource)); }