Exemplo n.º 1
0
        // Token: 0x06000021 RID: 33 RVA: 0x000031F0 File Offset: 0x000013F0
        static OculusInput()
        {
            IEnumerable <MethodInfo> source = Enumerable.Where <MethodInfo>(Enumerable.Select <ILInstruction, MethodInfo>(Enumerable.Where <ILInstruction>(typeof(VRCInputProcessorVive).GetMethod("Apply", (BindingFlags)(-1)).Parse(), (ILInstruction x) => x.OpCode == OpCodes.Callvirt), delegate(ILInstruction x)
            {
                ILInstruction ilinstruction = x;
                return(ilinstruction.GetArgument <MethodInfo>());
            }), (MethodInfo x) => x.DeclaringType == OculusInput.getSteamVRControllerById.ReturnType).Distinct <MethodInfo>();

            OculusInput.oculusGetAxis2D        = source.ElementAt(0);
            OculusInput.oculusGetButtonPressed = source.ElementAt(1);
            OculusInput.oculusGetButtonTouched = source.ElementAt(2);
            OculusInput.getIndex = typeof(SteamVR_TrackedObject).GetField("index");
        }