using System; using System.Runtime.InteropServices; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Inputs { // Token: 0x020022A4 RID: 8868 [Token(Token = "0x20022A4")] [Serializable] [StructLayout(3)] public class OculusPlatformOculusTouchVRInputHandler : VRInputHandler { // Token: 0x170028E5 RID: 10469 // (get) Token: 0x0600F35F RID: 62303 RVA: 0x003987DC File Offset: 0x003969DC [Token(Token = "0x170028E5")] public override bool SupportsAimWalkAndStickWalkSimultaneously { [Token(Token = "0x600F35F")] [Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "4")] get { return true; } } // Token: 0x170028E6 RID: 10470 // (get) Token: 0x0600F360 RID: 62304 RVA: 0x003987EC File Offset: 0x003969EC [Token(Token = "0x170028E6")] public override bool SupportsDontLockToolsInHand { [Token(Token = "0x600F360")] [Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "5")] get { return true; } } // Token: 0x170028E7 RID: 10471 // (get) Token: 0x0600F361 RID: 62305 RVA: 0x003987FC File Offset: 0x003969FC [Token(Token = "0x170028E7")] private OVRHapticsClip OculusHapticsClip { [Token(Token = "0x600F361")] [Address(RVA = "0x10CE560", Offset = "0x10CCF60", VA = "0x1810CE560")] get { OVRHapticsClip oculusHapticsClip = this._oculusHapticsClip; if (oculusHapticsClip == 0) { OVRHapticsClip ovrhapticsClip = new OVRHapticsClip(); this._oculusHapticsClip = ovrhapticsClip; OVRHaptics.OVRHapticsChannel rightChannel = OVRHaptics.RightChannel; OVRHapticsClip oculusHapticsClip2 = this.OculusHapticsClip; rightChannel.Preempt(oculusHapticsClip2); } return oculusHapticsClip; } } // Token: 0x0600F362 RID: 62306 RVA: 0x0039883C File Offset: 0x00396A3C [Token(Token = "0x600F362")] [Address(RVA = "0x10CE470", Offset = "0x10CCE70", VA = "0x1810CE470", Slot = "7")] public override void OPIJJOOOLBN() { this.k__BackingField = true; OVRManager.NewPosesEvent += this.BOLCFDBLCHF; } // Token: 0x0600F363 RID: 62307 RVA: 0x00398864 File Offset: 0x00396A64 [Token(Token = "0x600F363")] [Address(RVA = "0x10CCDB0", Offset = "0x10CB7B0", VA = "0x1810CCDB0", Slot = "8")] public override void BCGEIPOPAME() { OVRManager.NewPosesEvent -= this.BOLCFDBLCHF; } // Token: 0x0600F364 RID: 62308 RVA: 0x00398884 File Offset: 0x00396A84 [Token(Token = "0x600F364")] [Address(RVA = "0x10CCE30", Offset = "0x10CB830", VA = "0x1810CCE30")] private void BOLCFDBLCHF() { int num = 0; bool flag; this.k__BackingField = flag; if (flag) { bool flag2; if (!flag2) { } bool flag3; this.k__BackingField = flag3; Transform rawTrackerTransform = this.rawTrackerTransform; Transform rawTrackerTransform2 = this.rawTrackerTransform; Transform parent = this.rawTrackerTransform.parent; Vector3 vector; float z = vector.z; this.linearVelocity.z = z; float time = Time.time; Transform rawTrackerTransform3 = this.rawTrackerTransform; Transform parent2 = this.rawTrackerTransform.parent; Vector3 vector2; float z2 = vector2.z; this.angularVelocity.z = z2; base.FOOPBDPACBJ(); return; } this.k__BackingField = num != 0; throw new NullReferenceException(); } // Token: 0x0600F365 RID: 62309 RVA: 0x00398928 File Offset: 0x00396B28 [Token(Token = "0x600F365")] [Address(RVA = "0x10CD300", Offset = "0x10CBD00", VA = "0x1810CD300", Slot = "11")] protected override void GCGIMANBGKD(ref VRInputHandler.EFAKPOCFMPC GKNIHNHGBKC) { OVRInput.Button openMenuButton = this.map.OpenMenuButton; int num = 0; int num2 = (int)openMenuButton; GKNIHNHGBKC.DBENDMALBBK = num2; bool flag; GKNIHNHGBKC.DBENDMALBBK.GPGHKKMCFIF = flag; OVRInput.Button menuButton = this.map.MenuButton; int num3 = (int)menuButton; GKNIHNHGBKC.BDDMHHDKLHE = num3; bool flag2; GKNIHNHGBKC.BDDMHHDKLHE.GPGHKKMCFIF = flag2; OVRInput.Button teleportButton = this.map.TeleportButton; int num4 = (int)teleportButton; GKNIHNHGBKC.KJDKBHKNHPD = num4; bool flag3; GKNIHNHGBKC.KJDKBHKNHPD.GPGHKKMCFIF = flag3; OVRInput.Button pushToTalkButton = this.map.PushToTalkButton; int num5 = (int)pushToTalkButton; GKNIHNHGBKC.LGFOEBJPDKA = num5; bool flag4; GKNIHNHGBKC.LGFOEBJPDKA.GPGHKKMCFIF = flag4; OculusPlatformOculusTouchVRInputHandler.Map map = this.map; Axis2DSettings smoothSwipeRotateAxisSettings = map.SmoothSwipeRotateAxisSettings; OVRInput.Axis2D smoothSwipeRotateAxis = map.SmoothSwipeRotateAxis; Vector2 vector = this.FDIELKFPCAB(smoothSwipeRotateAxis, smoothSwipeRotateAxisSettings); OculusPlatformOculusTouchVRInputHandler.Map map2 = this.map; Axis2DSettings rotateAxisSettings = map2.RotateAxisSettings; OVRInput.Axis2D rotateAxis = map2.RotateAxis; Vector2 vector2 = this.FDIELKFPCAB(rotateAxis, rotateAxisSettings); OculusPlatformOculusTouchVRInputHandler.Map map3 = this.map; Axis2DSettings walkAxisSettings = map3.WalkAxisSettings; OVRInput.Axis2D walkAxis = map3.WalkAxis; Vector2 vector3 = this.FDIELKFPCAB(walkAxis, walkAxisSettings); GKNIHNHGBKC.IJBDGFLBADI = vector3; OVRInput.Button sprintButton = this.map.SprintButton; int num6 = (int)sprintButton; GKNIHNHGBKC.EHKHLEFKJND = num6; bool flag5; GKNIHNHGBKC.EHKHLEFKJND.GPGHKKMCFIF = flag5; OVRInput.Button sprintButton2 = this.map.SprintButton; int num7 = (int)sprintButton2; GKNIHNHGBKC.KCEKNHAKHGA = num7; bool flag6; GKNIHNHGBKC.KCEKNHAKHGA.GPGHKKMCFIF = flag6; OculusPlatformOculusTouchVRInputHandler.Map map4 = this.map; AxisPressButtons thumbstickDirectionButtons = map4.ThumbstickDirectionButtons; Vector2 aneepnbjpkk = GKNIHNHGBKC.ANEEPNBJPKK; float y = GKNIHNHGBKC.ANEEPNBJPKK.y; float rotateAxisDeadZone = map4.RotateAxisDeadZone; string text = thumbstickDirectionButtons.ToString(); OculusPlatformOculusTouchVRInputHandler.Map map5 = this.map; FDKPONPCGGC fdkponpcggc; bool gpghkkmcfif = fdkponpcggc.GPGHKKMCFIF; GKNIHNHGBKC.ALFHDHKHNHH.GPGHKKMCFIF = gpghkkmcfif; OculusPlatformOculusTouchVRInputHandler.Map map6 = this.map; FDKPONPCGGC fdkponpcggc2; bool gpghkkmcfif2 = fdkponpcggc2.GPGHKKMCFIF; GKNIHNHGBKC.JOOMEAKJBIJ.GPGHKKMCFIF = gpghkkmcfif2; OculusPlatformOculusTouchVRInputHandler.Map map7 = this.map; FDKPONPCGGC fdkponpcggc3; bool gpghkkmcfif3 = fdkponpcggc3.GPGHKKMCFIF; GKNIHNHGBKC.PKLBADMDPMA.GPGHKKMCFIF = gpghkkmcfif3; OVRInput.Axis1D[] pickupAxes = this.map.PickupAxes; int length = pickupAxes.Length; if (num < length) { int num8 = (int)pickupAxes[num]; int num9 = 0; if (y > (float)num9) { } num++; } GKNIHNHGBKC.BDLBPMGCPEE.JIBLKPMDPOF = (float)num; OVRInput.Axis1D triggerAxis = this.map.TriggerAxis; int num10 = 0; MOIPDBJEBEL moipdbjebel = this.ICHCINMFFBD(triggerAxis, (float)num10); GKNIHNHGBKC.LOKMOOGCDHI = rotateAxisDeadZone; GKNIHNHGBKC.LOKMOOGCDHI.JIBLKPMDPOF = aneepnbjpkk; OVRInput.Button gripTurnButton = this.map.GripTurnButton; int num11 = (int)gripTurnButton; GKNIHNHGBKC.MLHDMEMGHEO = num11; bool flag7; GKNIHNHGBKC.MLHDMEMGHEO.GPGHKKMCFIF = flag7; OculusPlatformOculusTouchVRInputHandler.Map map8 = this.map; BNIEBDIHLOK bniebdihlok = this.selfScalingHairTriggerButton; OVRInput.Axis1D selfScalingAxis = map8.SelfScalingAxis; int num12 = 0; MOIPDBJEBEL moipdbjebel2 = this.ICHCINMFFBD(selfScalingAxis, (float)num12); FDKPONPCGGC fdkponpcggc4 = FDKPONPCGGC.ECDPMKIJONO(bniebdihlok); bool gpghkkmcfif4 = fdkponpcggc4.GPGHKKMCFIF; bool gpghkkmcfif5 = fdkponpcggc4.GPGHKKMCFIF; GKNIHNHGBKC.GODIAMIEPJG.GPGHKKMCFIF = gpghkkmcfif5; GKNIHNHGBKC.HMPJMBEFGMM.GPGHKKMCFIF = gpghkkmcfif4; OVRInput.Axis1D triggerAxis2 = this.map.TriggerAxis; int num13 = 0; MOIPDBJEBEL moipdbjebel3 = this.ICHCINMFFBD(triggerAxis2, (float)num13); GKNIHNHGBKC.MMIGCAIKDOB = rotateAxisDeadZone; GKNIHNHGBKC.MMIGCAIKDOB.JIBLKPMDPOF = aneepnbjpkk; OculusPlatformOculusTouchVRInputHandler.Map map9 = this.map; Axis2DSettings rotateAxisSettings2 = map9.RotateAxisSettings; OVRInput.Axis2D rotateAxis2 = map9.RotateAxis; Vector2 vector4 = this.FDIELKFPCAB(rotateAxis2, rotateAxisSettings2); GKNIHNHGBKC.JBKKAKDEGHJ = rotateAxisDeadZone; GKNIHNHGBKC.JBKKAKDEGHJ.y = aneepnbjpkk; OVRInput.Button rcmainButton = this.map.RCMainButton; int num14 = (int)rcmainButton; GKNIHNHGBKC.BIOLPKIKBMN = num14; bool flag8; GKNIHNHGBKC.BIOLPKIKBMN.GPGHKKMCFIF = flag8; OculusPlatformOculusTouchVRInputHandler.Map map10 = this.map; float num15; GKNIHNHGBKC.PHIKDNMBFDL = num15; OVRInput.Touch[] thumbDownTouches = this.map.ThumbDownTouches; int num16 = 0; int length2 = thumbDownTouches.Length; if (num < length2) { OVRInput.Touch touch = thumbDownTouches[num]; num++; } bool flag9; GKNIHNHGBKC.KPLKGCOOOJP = flag9; GKNIHNHGBKC.KPLKGCOOOJP.GPGHKKMCFIF = num16 != 0; } // Token: 0x0600F366 RID: 62310 RVA: 0x00398D70 File Offset: 0x00396F70 [Token(Token = "0x600F366")] [Address(RVA = "0x10CE2C0", Offset = "0x10CCCC0", VA = "0x1810CE2C0", Slot = "9")] protected override void OAPPNDCDEJC(float LAIPKAHGIJF, bool OBDMPHDGBLG) { OVRHapticsClip oculusHapticsClip = this.OculusHapticsClip; OVRHapticsClip oculusHapticsClip2 = this.OculusHapticsClip; int num = oculusHapticsClip2.k__BackingField; if (oculusHapticsClip2 < 0) { num++; } float num2 = Mathf.Lerp((float)0, 255f, LAIPKAHGIJF); int num3 = 0; uint num4; if (num4 > (uint)0) { if (this.OculusHapticsClip < 0) { } num3++; } OVRHaptics.OVRHapticsChannel rightChannel = OVRHaptics.RightChannel; OVRHapticsClip oculusHapticsClip3 = this.OculusHapticsClip; rightChannel.Preempt(oculusHapticsClip3); } // Token: 0x0600F367 RID: 62311 RVA: 0x00398DE0 File Offset: 0x00396FE0 [Token(Token = "0x600F367")] [Address(RVA = "0x10CE0D0", Offset = "0x10CCAD0", VA = "0x1810CE0D0")] protected FDKPONPCGGC JJNOHCAADLH(OVRInput.Button DNGKIAJLLHG) { } // Token: 0x0600F368 RID: 62312 RVA: 0x00398DF0 File Offset: 0x00396FF0 [Token(Token = "0x600F368")] [Address(RVA = "0x10CDFA0", Offset = "0x10CC9A0", VA = "0x1810CDFA0")] protected FDKPONPCGGC JJNOHCAADLH(OVRInput.Button[] NILPPGBINOL) { int num = 0; bool flag = "{il2cpp array field NILPPGBINOL->}" != num; num++; throw new NullReferenceException(); } // Token: 0x0600F369 RID: 62313 RVA: 0x00398E18 File Offset: 0x00397018 [Token(Token = "0x600F369")] [Address(RVA = "0x10CE190", Offset = "0x10CCB90", VA = "0x1810CE190")] protected FDKPONPCGGC KJDDABAIDIC(OVRInput.Touch[] NILPPGBINOL) { int num = 0; bool flag = "{il2cpp array field NILPPGBINOL->}" != num; num++; throw new NullReferenceException(); } // Token: 0x0600F36A RID: 62314 RVA: 0x00398E40 File Offset: 0x00397040 [Token(Token = "0x600F36A")] [Address(RVA = "0x10CDDA0", Offset = "0x10CC7A0", VA = "0x1810CDDA0")] protected MOIPDBJEBEL ICHCINMFFBD(OVRInput.Axis1D DNGKIAJLLHG, float GPOEMOLPOMI = 0f) { } // Token: 0x0600F36B RID: 62315 RVA: 0x00398E50 File Offset: 0x00397050 [Token(Token = "0x600F36B")] [Address(RVA = "0x10CDE30", Offset = "0x10CC830", VA = "0x1810CDE30")] protected MOIPDBJEBEL ICHCINMFFBD(OVRInput.Axis1D[] NILPPGBINOL, float GPOEMOLPOMI = 0f) { int num = 0; int length = NILPPGBINOL.Length; if (num < length) { int num2 = (int)NILPPGBINOL[num]; int num3 = 0; if (GPOEMOLPOMI > (float)num3) { } num++; } throw new NullReferenceException(); } // Token: 0x0600F36C RID: 62316 RVA: 0x00398E84 File Offset: 0x00397084 [Token(Token = "0x600F36C")] [Address(RVA = "0x10CD260", Offset = "0x10CBC60", VA = "0x1810CD260")] protected Vector2 FDIELKFPCAB(OVRInput.Axis2D DNGKIAJLLHG, Axis2DSettings GMDDKJKDHMD) { Vector2 vector2; if (GMDDKJKDHMD != 0) { Vector2 vector = GMDDKJKDHMD.IPIAGFNHIGM(vector2); } return vector2; } // Token: 0x0600F36D RID: 62317 RVA: 0x00398EA4 File Offset: 0x003970A4 [Token(Token = "0x600F36D")] [Address(RVA = "0x10CE500", Offset = "0x10CCF00", VA = "0x1810CE500")] public OculusPlatformOculusTouchVRInputHandler() { BNIEBDIHLOK bniebdihlok = new BNIEBDIHLOK(); this.selfScalingHairTriggerButton = bniebdihlok; base..ctor(); } // Token: 0x0400A2E0 RID: 41696 [global::Cpp2IlInjected.FieldOffset(Offset = "0x1B8")] [Token(Token = "0x400A2E0")] [SerializeField] private OculusPlatformOculusTouchVRInputHandler.Map map; // Token: 0x0400A2E1 RID: 41697 [global::Cpp2IlInjected.FieldOffset(Offset = "0x1C0")] [Token(Token = "0x400A2E1")] private BNIEBDIHLOK selfScalingHairTriggerButton; // Token: 0x0400A2E2 RID: 41698 [Token(Token = "0x400A2E2")] private const int OCULUS_HAPTIC_SAMPLE_BUFFER_SIZE = 10; // Token: 0x0400A2E3 RID: 41699 [global::Cpp2IlInjected.FieldOffset(Offset = "0x1C8")] [Token(Token = "0x400A2E3")] private OVRHapticsClip _oculusHapticsClip; // Token: 0x020022A5 RID: 8869 [Token(Token = "0x20022A5")] [Serializable] private class Map { // Token: 0x0600F36E RID: 62318 RVA: 0x00398EC4 File Offset: 0x003970C4 [Token(Token = "0x600F36E")] [Address(RVA = "0x10CC870", Offset = "0x10CB270", VA = "0x1810CC870")] public Map() { OVRInput.Axis1D[] array = new OVRInput.Axis1D[2]; array[0] = (OVRInput.Axis1D)((ulong)4L); array[0] = (OVRInput.Axis1D)((ulong)1L); this.PickupAxes = array; this.TriggerAxis = (OVRInput.Axis1D)((ulong)1L); this.SelfScalingAxis = (OVRInput.Axis1D)((ulong)4L); this.OpenMenuButton = (OVRInput.Button)((ulong)256L); this.MenuButton = (OVRInput.Button)((ulong)2L); this.TeleportButton = (OVRInput.Button)((ulong)1L); this.GripTurnButton = (OVRInput.Button)((ulong)32768L); this.SprintButton = (OVRInput.Button)((ulong)32768L); this.SlideButton = (OVRInput.Button)((ulong)32768L); this.PushToTalkButton = (OVRInput.Button)((ulong)32768L); this.RotateAxis = (OVRInput.Axis2D)((ulong)1L); this.WalkAxis = (OVRInput.Axis2D)((ulong)1L); this.SmoothSwipeRotateAxis = (OVRInput.Axis2D)((ulong)1L); OVRInput.Touch[] array2 = new OVRInput.Touch[2]; array2[0] = (OVRInput.Touch)((ulong)1L); array2[0] = (OVRInput.Touch)((ulong)2L); this.ThumbDownTouches = array2; this.RCMainButton = (OVRInput.Button)((ulong)16384L); this.RotateAxisDeadZone = 0.7f; base..ctor(); } // Token: 0x0400A2E4 RID: 41700 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400A2E4")] public OVRInput.Axis1D[] PickupAxes; // Token: 0x0400A2E5 RID: 41701 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400A2E5")] public OVRInput.Axis1D TriggerAxis; // Token: 0x0400A2E6 RID: 41702 [global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")] [Token(Token = "0x400A2E6")] public OVRInput.Axis1D SelfScalingAxis; // Token: 0x0400A2E7 RID: 41703 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400A2E7")] public OVRInput.Button OpenMenuButton; // Token: 0x0400A2E8 RID: 41704 [global::Cpp2IlInjected.FieldOffset(Offset = "0x24")] [Token(Token = "0x400A2E8")] public OVRInput.Button MenuButton; // Token: 0x0400A2E9 RID: 41705 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x400A2E9")] public OVRInput.Button TeleportButton; // Token: 0x0400A2EA RID: 41706 [global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")] [Token(Token = "0x400A2EA")] public OVRInput.Button GripTurnButton; // Token: 0x0400A2EB RID: 41707 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x400A2EB")] public OVRInput.Button SprintButton; // Token: 0x0400A2EC RID: 41708 [global::Cpp2IlInjected.FieldOffset(Offset = "0x34")] [Token(Token = "0x400A2EC")] public OVRInput.Button SlideButton; // Token: 0x0400A2ED RID: 41709 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400A2ED")] public OVRInput.Button PushToTalkButton; // Token: 0x0400A2EE RID: 41710 [global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")] [Token(Token = "0x400A2EE")] public OVRInput.Axis2D RotateAxis; // Token: 0x0400A2EF RID: 41711 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x400A2EF")] public OVRInput.Axis2D WalkAxis; // Token: 0x0400A2F0 RID: 41712 [global::Cpp2IlInjected.FieldOffset(Offset = "0x44")] [Token(Token = "0x400A2F0")] public OVRInput.Axis2D SmoothSwipeRotateAxis; // Token: 0x0400A2F1 RID: 41713 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x400A2F1")] public OVRInput.Touch[] ThumbDownTouches; // Token: 0x0400A2F2 RID: 41714 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x400A2F2")] public OVRInput.Button RCMainButton; // Token: 0x0400A2F3 RID: 41715 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x400A2F3")] public Axis2DSettings RotateAxisSettings; // Token: 0x0400A2F4 RID: 41716 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x400A2F4")] public Axis2DSettings WalkAxisSettings; // Token: 0x0400A2F5 RID: 41717 [global::Cpp2IlInjected.FieldOffset(Offset = "0x68")] [Token(Token = "0x400A2F5")] public Axis2DSettings SmoothSwipeRotateAxisSettings; // Token: 0x0400A2F6 RID: 41718 [global::Cpp2IlInjected.FieldOffset(Offset = "0x70")] [Token(Token = "0x400A2F6")] public DeprecatedAxisSettings TriggerSettings; // Token: 0x0400A2F7 RID: 41719 [global::Cpp2IlInjected.FieldOffset(Offset = "0x78")] [Token(Token = "0x400A2F7")] public AxisPressButtons ThumbstickDirectionButtons; // Token: 0x0400A2F8 RID: 41720 [global::Cpp2IlInjected.FieldOffset(Offset = "0x80")] [Token(Token = "0x400A2F8")] public float RotateAxisDeadZone; } } }