// Token: 0x06000023 RID: 35 RVA: 0x00003384 File Offset: 0x00001584 internal static bool GetButtonTouched(EVRButtonId button, OculusInput.Controller controller) { bool result; try { result = (bool)OculusInput.oculusGetButtonTouched.Invoke(OculusInput.GetControllerObject(controller), new object[] { (int)button }); } catch { result = false; } return(result); }
// Token: 0x06000024 RID: 36 RVA: 0x000033D8 File Offset: 0x000015D8 internal static Vector2 GetAxis2D(EVRButtonId axis, OculusInput.Controller controller) { Vector2 result; try { result = (Vector2)OculusInput.oculusGetAxis2D.Invoke(OculusInput.GetControllerObject(controller), new object[] { (int)axis }); } catch { result = Vector2.zero; } return(result); }
// Token: 0x06000026 RID: 38 RVA: 0x00003458 File Offset: 0x00001658 public static object GetControllerObject(OculusInput.Controller c) { try { SteamVR_TrackedObject component = ((c == OculusInput.Controller.Left) ? OculusInput.GetSteamVR_ControllerManager().left : OculusInput.GetSteamVR_ControllerManager().right).GetComponent <SteamVR_TrackedObject>(); int index = component.GetIndex(); bool flag = index >= 0 && component.IsValid(); if (flag) { return(OculusInput.getSteamVRControllerById.Invoke(null, new object[] { index })); } } catch (Exception value) { Console.WriteLine(value); } return(null); }