using System; using System.Runtime.CompilerServices; using Cpp2IlInjected; using UnityEngine; namespace Obi.CrossPlatformInput { // Token: 0x020004FD RID: 1277 [Token(Token = "0x20004FD")] public static class CrossPlatformInputManager { // Token: 0x06002C8B RID: 11403 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6002C8B")] [Address(RVA = "0x1487FE0", Offset = "0x14867E0", VA = "0x181487FE0")] static CrossPlatformInputManager() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06002C8C RID: 11404 RVA: 0x000603C8 File Offset: 0x0005E5C8 [Token(Token = "0x6002C8C")] [Address(RVA = "0x1487D70", Offset = "0x1486570", VA = "0x181487D70")] public static void SwitchActiveInputMethod(CrossPlatformInputManager.ActiveInputMethod activeInputMethod) { if (activeInputMethod == CrossPlatformInputManager.ActiveInputMethod.Hardware) { CrossPlatformInputManager.activeInput = CrossPlatformInputManager.s_HardwareInput; } if (activeInputMethod == CrossPlatformInputManager.ActiveInputMethod.Touch) { CrossPlatformInputManager.activeInput = CrossPlatformInputManager.s_TouchInput; } } // Token: 0x06002C8D RID: 11405 RVA: 0x000603F4 File Offset: 0x0005E5F4 [Token(Token = "0x6002C8D")] [Address(RVA = "0x1487410", Offset = "0x1485C10", VA = "0x181487410")] public static bool AxisExists(string name) { return CrossPlatformInputManager.activeInput.AxisExists(name); } // Token: 0x06002C8E RID: 11406 RVA: 0x00060414 File Offset: 0x0005E614 [Token(Token = "0x6002C8E")] [Address(RVA = "0x1487490", Offset = "0x1485C90", VA = "0x181487490")] public static bool ButtonExists(string name) { return CrossPlatformInputManager.activeInput.ButtonExists(name); } // Token: 0x06002C8F RID: 11407 RVA: 0x00060434 File Offset: 0x0005E634 [Token(Token = "0x6002C8F")] [Address(RVA = "0x14877E0", Offset = "0x1485FE0", VA = "0x1814877E0")] public static void RegisterVirtualAxis(CrossPlatformInputManager.VirtualAxis axis) { CrossPlatformInputManager.activeInput.RegisterVirtualAxis(axis); } // Token: 0x06002C90 RID: 11408 RVA: 0x00060454 File Offset: 0x0005E654 [Token(Token = "0x6002C90")] [Address(RVA = "0x1487860", Offset = "0x1486060", VA = "0x181487860")] public static void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button) { CrossPlatformInputManager.activeInput.RegisterVirtualButton(button); } // Token: 0x06002C91 RID: 11409 RVA: 0x00060474 File Offset: 0x0005E674 [Token(Token = "0x6002C91")] [Address(RVA = "0x1487E20", Offset = "0x1486620", VA = "0x181487E20")] public static void UnRegisterVirtualAxis(string name) { /* An exception occurred when decompiling this method (06002C91) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager::UnRegisterVirtualAxis(System.String) ---> System.Exception: Basic block has to end with unconditional control flow. {; IL_10:; stloc:ArgumentNullException(var_0_1A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("name"))); }; at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1836 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1836 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1804 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618 */; } // Token: 0x06002C92 RID: 11410 RVA: 0x0006049C File Offset: 0x0005E69C [Token(Token = "0x6002C92")] [Address(RVA = "0x1487EE0", Offset = "0x14866E0", VA = "0x181487EE0")] public static void UnRegisterVirtualButton(string name) { CrossPlatformInputManager.activeInput.UnRegisterVirtualButton(name); } // Token: 0x06002C93 RID: 11411 RVA: 0x000604BC File Offset: 0x0005E6BC [Token(Token = "0x6002C93")] [Address(RVA = "0x1487F60", Offset = "0x1486760", VA = "0x181487F60")] public static CrossPlatformInputManager.VirtualAxis VirtualAxisReference(string name) { return CrossPlatformInputManager.activeInput.VirtualAxisReference(name); } // Token: 0x06002C94 RID: 11412 RVA: 0x000604DC File Offset: 0x0005E6DC [Token(Token = "0x6002C94")] [Address(RVA = "0x1487570", Offset = "0x1485D70", VA = "0x181487570")] public static float GetAxis(string name) { int num = 0; return CrossPlatformInputManager.GetAxis(name, num != 0); } // Token: 0x06002C95 RID: 11413 RVA: 0x000604F4 File Offset: 0x0005E6F4 [Token(Token = "0x6002C95")] [Address(RVA = "0x1487510", Offset = "0x1485D10", VA = "0x181487510")] public static float GetAxisRaw(string name) { return CrossPlatformInputManager.GetAxis(name, true); } // Token: 0x06002C96 RID: 11414 RVA: 0x00060508 File Offset: 0x0005E708 [Token(Token = "0x6002C96")] [Address(RVA = "0x14875D0", Offset = "0x1485DD0", VA = "0x1814875D0")] private static float GetAxis(string name, bool raw) { return CrossPlatformInputManager.activeInput.GetAxis(name, raw); } // Token: 0x06002C97 RID: 11415 RVA: 0x00060528 File Offset: 0x0005E728 [Token(Token = "0x6002C97")] [Address(RVA = "0x1487760", Offset = "0x1485F60", VA = "0x181487760")] public static bool GetButton(string name) { return CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C98 RID: 11416 RVA: 0x00060548 File Offset: 0x0005E748 [Token(Token = "0x6002C98")] [Address(RVA = "0x1487660", Offset = "0x1485E60", VA = "0x181487660")] public static bool GetButtonDown(string name) { return CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C99 RID: 11417 RVA: 0x00060568 File Offset: 0x0005E768 [Token(Token = "0x6002C99")] [Address(RVA = "0x14876E0", Offset = "0x1485EE0", VA = "0x1814876E0")] public static bool GetButtonUp(string name) { return CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9A RID: 11418 RVA: 0x00060588 File Offset: 0x0005E788 [Token(Token = "0x6002C9A")] [Address(RVA = "0x1487AF0", Offset = "0x14862F0", VA = "0x181487AF0")] public static void SetButtonDown(string name) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9B RID: 11419 RVA: 0x000605A8 File Offset: 0x0005E7A8 [Token(Token = "0x6002C9B")] [Address(RVA = "0x1487B70", Offset = "0x1486370", VA = "0x181487B70")] public static void SetButtonUp(string name) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9C RID: 11420 RVA: 0x000605C8 File Offset: 0x0005E7C8 [Token(Token = "0x6002C9C")] [Address(RVA = "0x1487960", Offset = "0x1486160", VA = "0x181487960")] public static void SetAxisPositive(string name) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9D RID: 11421 RVA: 0x000605E8 File Offset: 0x0005E7E8 [Token(Token = "0x6002C9D")] [Address(RVA = "0x14878E0", Offset = "0x14860E0", VA = "0x1814878E0")] public static void SetAxisNegative(string name) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9E RID: 11422 RVA: 0x00060608 File Offset: 0x0005E808 [Token(Token = "0x6002C9E")] [Address(RVA = "0x14879E0", Offset = "0x14861E0", VA = "0x1814879E0")] public static void SetAxisZero(string name) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x06002C9F RID: 11423 RVA: 0x00060628 File Offset: 0x0005E828 [Token(Token = "0x6002C9F")] [Address(RVA = "0x1487A60", Offset = "0x1486260", VA = "0x181487A60")] public static void SetAxis(string name, float value) { bool button = CrossPlatformInputManager.activeInput.GetButton(name); } // Token: 0x1700030E RID: 782 // (get) Token: 0x06002CA0 RID: 11424 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x1700030E")] public static Vector3 mousePosition { [Token(Token = "0x6002CA0")] [Address(RVA = "0x14880B0", Offset = "0x14868B0", VA = "0x1814880B0")] get { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } } // Token: 0x06002CA1 RID: 11425 RVA: 0x00060648 File Offset: 0x0005E848 [Token(Token = "0x6002CA1")] [Address(RVA = "0x1487BF0", Offset = "0x14863F0", VA = "0x181487BF0")] public static void SetVirtualMousePositionX(float f) { CrossPlatformInputManager.activeInput.SetVirtualMousePositionX(f); } // Token: 0x06002CA2 RID: 11426 RVA: 0x00060668 File Offset: 0x0005E868 [Token(Token = "0x6002CA2")] [Address(RVA = "0x1487C70", Offset = "0x1486470", VA = "0x181487C70")] public static void SetVirtualMousePositionY(float f) { CrossPlatformInputManager.activeInput.SetVirtualMousePositionY(f); } // Token: 0x06002CA3 RID: 11427 RVA: 0x00060688 File Offset: 0x0005E888 [Token(Token = "0x6002CA3")] [Address(RVA = "0x1487CF0", Offset = "0x14864F0", VA = "0x181487CF0")] public static void SetVirtualMousePositionZ(float f) { CrossPlatformInputManager.activeInput.SetVirtualMousePositionZ(f); } // Token: 0x040034FC RID: 13564 [Token(Token = "0x40034FC")] private static VirtualInput activeInput; // Token: 0x040034FD RID: 13565 [Token(Token = "0x40034FD")] private static VirtualInput s_TouchInput; // Token: 0x040034FE RID: 13566 [Token(Token = "0x40034FE")] private static VirtualInput s_HardwareInput; // Token: 0x020004FE RID: 1278 [Token(Token = "0x20004FE")] public enum ActiveInputMethod { // Token: 0x04003500 RID: 13568 [Token(Token = "0x4003500")] Hardware, // Token: 0x04003501 RID: 13569 [Token(Token = "0x4003501")] Touch } // Token: 0x020004FF RID: 1279 [Token(Token = "0x20004FF")] public class VirtualAxis { // Token: 0x1700030F RID: 783 // (get) Token: 0x06002CA4 RID: 11428 RVA: 0x000606A8 File Offset: 0x0005E8A8 // (set) Token: 0x06002CA5 RID: 11429 RVA: 0x000606BC File Offset: 0x0005E8BC [Token(Token = "0x1700030F")] public string name { [Token(Token = "0x6002CA4")] [Address(RVA = "0x345100", Offset = "0x343900", VA = "0x180345100")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6002CA5")] [Address(RVA = "0x3CBE00", Offset = "0x3CA600", VA = "0x1803CBE00")] [CompilerGenerated] private set { /* An exception occurred when decompiling this method (06002CA5) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager/VirtualAxis::set_name(System.String) ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; stfld:string(VirtualAxis::k__BackingField, ldloc:VirtualAxis(this), ldloc:string(value)); }; at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618 */; } } // Token: 0x17000310 RID: 784 // (get) Token: 0x06002CA6 RID: 11430 RVA: 0x000606D0 File Offset: 0x0005E8D0 // (set) Token: 0x06002CA7 RID: 11431 RVA: 0x000606E4 File Offset: 0x0005E8E4 [Token(Token = "0x17000310")] public bool matchWithInputManager { [Token(Token = "0x6002CA6")] [Address(RVA = "0x5FC200", Offset = "0x5FAA00", VA = "0x1805FC200")] get; [Token(Token = "0x6002CA7")] [Address(RVA = "0x5FC500", Offset = "0x5FAD00", VA = "0x1805FC500")] private set; } // Token: 0x06002CA8 RID: 11432 RVA: 0x000606F8 File Offset: 0x0005E8F8 [Token(Token = "0x6002CA8")] [Address(RVA = "0x676B10", Offset = "0x675310", VA = "0x180676B10")] public VirtualAxis(string name) { this.k__BackingField = name; this.matchWithInputManager = true; } // Token: 0x06002CA9 RID: 11433 RVA: 0x0006071C File Offset: 0x0005E91C [Token(Token = "0x6002CA9")] [Address(RVA = "0x676B50", Offset = "0x675350", VA = "0x180676B50")] public VirtualAxis(string name, bool matchToInputSettings) { this.k__BackingField = name; this.matchWithInputManager = matchToInputSettings; } // Token: 0x06002CAA RID: 11434 RVA: 0x00060740 File Offset: 0x0005E940 [Token(Token = "0x6002CAA")] [Address(RVA = "0x676AA0", Offset = "0x6752A0", VA = "0x180676AA0")] public void Remove() { CrossPlatformInputManager.UnRegisterVirtualAxis(this.k__BackingField); } // Token: 0x06002CAB RID: 11435 RVA: 0x00060758 File Offset: 0x0005E958 [Token(Token = "0x6002CAB")] [Address(RVA = "0x676B00", Offset = "0x675300", VA = "0x180676B00")] public void Update(float value) { this.m_Value = value; } // Token: 0x17000311 RID: 785 // (get) Token: 0x06002CAC RID: 11436 RVA: 0x0006076C File Offset: 0x0005E96C [Token(Token = "0x17000311")] public float GetValue { [Token(Token = "0x6002CAC")] [Address(RVA = "0x676BA0", Offset = "0x6753A0", VA = "0x180676BA0")] get { return this.m_Value; } } // Token: 0x17000312 RID: 786 // (get) Token: 0x06002CAD RID: 11437 RVA: 0x00060780 File Offset: 0x0005E980 [Token(Token = "0x17000312")] public float GetValueRaw { [Token(Token = "0x6002CAD")] [Address(RVA = "0x676BA0", Offset = "0x6753A0", VA = "0x180676BA0")] get { return this.m_Value; } } // Token: 0x04003503 RID: 13571 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4003503")] private float m_Value; } // Token: 0x02000500 RID: 1280 [Token(Token = "0x2000500")] public class VirtualButton { // Token: 0x17000313 RID: 787 // (get) Token: 0x06002CAE RID: 11438 RVA: 0x00060794 File Offset: 0x0005E994 // (set) Token: 0x06002CAF RID: 11439 RVA: 0x000607A8 File Offset: 0x0005E9A8 [Token(Token = "0x17000313")] public string name { [Token(Token = "0x6002CAE")] [Address(RVA = "0x345100", Offset = "0x343900", VA = "0x180345100")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6002CAF")] [Address(RVA = "0x3CBE00", Offset = "0x3CA600", VA = "0x1803CBE00")] [CompilerGenerated] private set { /* An exception occurred when decompiling this method (06002CAF) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager/VirtualButton::set_name(System.String) ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; stfld:string(VirtualButton::k__BackingField, ldloc:VirtualButton(this), ldloc:string(value)); }; at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618 */; } } // Token: 0x17000314 RID: 788 // (get) Token: 0x06002CB0 RID: 11440 RVA: 0x000607BC File Offset: 0x0005E9BC // (set) Token: 0x06002CB1 RID: 11441 RVA: 0x000607D0 File Offset: 0x0005E9D0 [Token(Token = "0x17000314")] public bool matchWithInputManager { [Token(Token = "0x6002CB0")] [Address(RVA = "0x41E660", Offset = "0x41CE60", VA = "0x18041E660")] get; [Token(Token = "0x6002CB1")] [Address(RVA = "0x41E690", Offset = "0x41CE90", VA = "0x18041E690")] private set; } // Token: 0x06002CB2 RID: 11442 RVA: 0x000607E4 File Offset: 0x0005E9E4 [Token(Token = "0x6002CB2")] [Address(RVA = "0x676C60", Offset = "0x675460", VA = "0x180676C60")] public VirtualButton(string name) { this.k__BackingField = name; this.matchWithInputManager = true; } // Token: 0x06002CB3 RID: 11443 RVA: 0x00060828 File Offset: 0x0005EA28 [Token(Token = "0x6002CB3")] [Address(RVA = "0x676CB0", Offset = "0x6754B0", VA = "0x180676CB0")] public VirtualButton(string name, bool matchToInputSettings) { this.k__BackingField = name; this.matchWithInputManager = matchToInputSettings; } // Token: 0x06002CB4 RID: 11444 RVA: 0x0006086C File Offset: 0x0005EA6C [Token(Token = "0x6002CB4")] [Address(RVA = "0x676BB0", Offset = "0x6753B0", VA = "0x180676BB0")] public void Pressed() { if (!this.m_Pressed) { this.m_Pressed = true; int frameCount = Time.frameCount; this.m_LastPressedFrame = frameCount; } } // Token: 0x06002CB5 RID: 11445 RVA: 0x00060898 File Offset: 0x0005EA98 [Token(Token = "0x6002CB5")] [Address(RVA = "0x676BE0", Offset = "0x6753E0", VA = "0x180676BE0")] public void Released() { this.m_Pressed = false; int frameCount = Time.frameCount; this.m_ReleasedFrame = frameCount; } // Token: 0x06002CB6 RID: 11446 RVA: 0x000608BC File Offset: 0x0005EABC [Token(Token = "0x6002CB6")] [Address(RVA = "0x676C00", Offset = "0x675400", VA = "0x180676C00")] public void Remove() { CrossPlatformInputManager.UnRegisterVirtualButton(this.k__BackingField); } // Token: 0x17000315 RID: 789 // (get) Token: 0x06002CB7 RID: 11447 RVA: 0x000608D4 File Offset: 0x0005EAD4 [Token(Token = "0x17000315")] public bool GetButton { [Token(Token = "0x6002CB7")] [Address(RVA = "0x41ECE0", Offset = "0x41D4E0", VA = "0x18041ECE0")] get { return this.m_Pressed; } } // Token: 0x17000316 RID: 790 // (get) Token: 0x06002CB8 RID: 11448 RVA: 0x000608E8 File Offset: 0x0005EAE8 [Token(Token = "0x17000316")] public bool GetButtonDown { [Token(Token = "0x6002CB8")] [Address(RVA = "0x676D10", Offset = "0x675510", VA = "0x180676D10")] get { int num = this.m_LastPressedFrame; int frameCount = Time.frameCount; num -= frameCount; return num == -1; } } // Token: 0x17000317 RID: 791 // (get) Token: 0x06002CB9 RID: 11449 RVA: 0x0006090C File Offset: 0x0005EB0C [Token(Token = "0x17000317")] public bool GetButtonUp { [Token(Token = "0x6002CB9")] [Address(RVA = "0x676D30", Offset = "0x675530", VA = "0x180676D30")] get { int releasedFrame = this.m_ReleasedFrame; int frameCount = Time.frameCount; return releasedFrame == frameCount; } } // Token: 0x04003507 RID: 13575 [FieldOffset(Offset = "0x1C")] [Token(Token = "0x4003507")] private int m_LastPressedFrame = (int)((ulong)4294967291L); // Token: 0x04003508 RID: 13576 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4003508")] private int m_ReleasedFrame = (int)((ulong)4294967291L); // Token: 0x04003509 RID: 13577 [FieldOffset(Offset = "0x24")] [Token(Token = "0x4003509")] private bool m_Pressed; } } }