using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using Cpp2IlInjected; using UnityEngine.InputSystem; // Token: 0x02000122 RID: 290 [Token(Token = "0x2000122")] [Serializable] public class GameControllerKeyMaps { // Token: 0x06000EE7 RID: 3815 RVA: 0x00023828 File Offset: 0x00021A28 [Token(Token = "0x6000EE7")] [Address(RVA = "0x4FFAD0", Offset = "0x4FE2D0", VA = "0x1804FFAD0")] public GameControllerKeyMaps() { this.ResetKeyboardDefaultPaths(); this.ResetGamepadDefaultPaths(); } // Token: 0x06000EE8 RID: 3816 RVA: 0x00023848 File Offset: 0x00021A48 [Token(Token = "0x6000EE8")] [Address(RVA = "0x4FECF0", Offset = "0x4FD4F0", VA = "0x1804FECF0")] public void ResetKeyboardDefaultPaths() { Dictionary dictionary = new Dictionary(); throw new NullReferenceException(); } // Token: 0x06000EE9 RID: 3817 RVA: 0x00023918 File Offset: 0x00021B18 [Token(Token = "0x6000EE9")] [Address(RVA = "0x4FE970", Offset = "0x4FD170", VA = "0x1804FE970")] public void ResetGamepadDefaultPaths() { Dictionary dictionary = new Dictionary(); throw new NullReferenceException(); } // Token: 0x06000EEA RID: 3818 RVA: 0x0002398C File Offset: 0x00021B8C [Token(Token = "0x6000EEA")] [Address(RVA = "0x4FF930", Offset = "0x4FE130", VA = "0x1804FF930")] public void UpdateKeyboardKey(string inputActionName, string keyCode) { Dictionary dictionary = this.keyboardPathMap; this.UpdateKeymap(dictionary, inputActionName, keyCode); } // Token: 0x06000EEB RID: 3819 RVA: 0x000239AC File Offset: 0x00021BAC [Token(Token = "0x6000EEB")] [Address(RVA = "0x4FF900", Offset = "0x4FE100", VA = "0x1804FF900")] public void UpdateGamepadKey(string inputActionName, string keyCode) { Dictionary dictionary = this.gamepadPathMap; this.UpdateKeymap(dictionary, inputActionName, keyCode); } // Token: 0x06000EEC RID: 3820 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EEC")] [Address(RVA = "0x4FF960", Offset = "0x4FE160", VA = "0x1804FF960")] private void UpdateKeymap(Dictionary map, string inputActionName, string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EED RID: 3821 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EED")] [Address(RVA = "0x4FE6C0", Offset = "0x4FCEC0", VA = "0x1804FE6C0")] public string GetKeyboardKey(string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EEE RID: 3822 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EEE")] [Address(RVA = "0x4FDB60", Offset = "0x4FC360", VA = "0x1804FDB60")] public string GetGamepadKey(string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EEF RID: 3823 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EEF")] [Address(RVA = "0x4FDE20", Offset = "0x4FC620", VA = "0x1804FDE20")] public string GetGamepadUISubmitKeyCode() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EF0 RID: 3824 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EF0")] [Address(RVA = "0x4FDD30", Offset = "0x4FC530", VA = "0x1804FDD30")] public string GetGamepadUICancelKeyCode() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EF1 RID: 3825 RVA: 0x000239CC File Offset: 0x00021BCC [Token(Token = "0x6000EF1")] [Address(RVA = "0x4FDA00", Offset = "0x4FC200", VA = "0x1804FDA00")] public string[] GetControllerKeys(string actionName) { string[] array; string text2; for (;;) { array = new string[2]; string text = this.keyboardPathMap[actionName]; if (text == 0 || text != 0) { array[0] = text; text2 = this.gamepadPathMap[actionName]; if (text2 == 0 || text2 != 0) { break; } } } array[1] = text2; return array; } // Token: 0x06000EF2 RID: 3826 RVA: 0x00023A24 File Offset: 0x00021C24 [Token(Token = "0x6000EF2")] [Address(RVA = "0x4FF4D0", Offset = "0x4FDCD0", VA = "0x1804FF4D0")] public void RunKeyboardRebindOperation(string inputActionName, Action rebindHandler) { GameControllerKeyMaps.RebindingCmd rebindingCmd; string[] array; for (;;) { rebindingCmd = new GameControllerKeyMaps.RebindingCmd(); rebindingCmd.k__BackingField = inputActionName; rebindingCmd.k__BackingField = rebindHandler; array = new string[2]; if ("" == 0 || "" != 0) { array[0] = ""; if ("" == 0 || "" != 0) { break; } } } array[1] = ""; rebindingCmd.k__BackingField = array; rebindingCmd.k__BackingField = true; this.StartRebindingOperation(rebindingCmd); } // Token: 0x06000EF3 RID: 3827 RVA: 0x00023AA0 File Offset: 0x00021CA0 [Token(Token = "0x6000EF3")] [Address(RVA = "0x4FF380", Offset = "0x4FDB80", VA = "0x1804FF380")] public void RunGamepadRebindOperation(string inputActionName, Action rebindHandler) { GameControllerKeyMaps.RebindingCmd rebindingCmd; string[] array; do { rebindingCmd = new GameControllerKeyMaps.RebindingCmd(); rebindingCmd.k__BackingField = inputActionName; rebindingCmd.k__BackingField = rebindHandler; array = new string[1]; } while ("" != 0 && array == 0); array[0] = ""; rebindingCmd.k__BackingField = array; rebindingCmd.k__BackingField = false; this.StartRebindingOperation(rebindingCmd); } // Token: 0x06000EF4 RID: 3828 RVA: 0x00023AFC File Offset: 0x00021CFC [Token(Token = "0x6000EF4")] [Address(RVA = "0x4FF690", Offset = "0x4FDE90", VA = "0x1804FF690")] private void StartRebindingOperation(GameControllerKeyMaps.RebindingCmd rebindingCmd) { int num; InputAction inputAction = new InputAction("rebind", InputActionType.Button, "/start", num, num, num); num = 0; InputAction inputDetectAction = inputAction; InputActionRebindingExtensions.RebindingOperation rebindingOperation = inputDetectAction.PerformInteractiveRebinding(-1).OnMatchWaitForAnother(0.1f); Action action = delegate(InputActionRebindingExtensions.RebindingOperation operation) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); }; InputActionRebindingExtensions.RebindingOperation rebindingOperation2 = rebindingOperation.OnComplete(action).Start(); } // Token: 0x06000EF5 RID: 3829 RVA: 0x00023B74 File Offset: 0x00021D74 [Token(Token = "0x6000EF5")] [Address(RVA = "0x4FE3D0", Offset = "0x4FCBD0", VA = "0x1804FE3D0")] public string[] GetInvalidKeyboardPaths() { string[] array; for (;;) { array = new string[6]; if ("/escape" == 0 || "/escape" != 0) { array[0] = "/escape"; if ("/leftMeta" == 0 || "/leftMeta" != 0) { array[1] = "/leftMeta"; if ("/rightMeta" == 0 || "/rightMeta" != 0) { array[2] = "/rightMeta"; if ("/printScreen" == 0 || "/printScreen" != 0) { array[3] = "/printScreen"; if ("/scrollLock" == 0 || "/scrollLock" != 0) { array[4] = "/scrollLock"; if ("/pause" == 0 || "/pause" != 0) { break; } } } } } } } array[5] = "/pause"; return array; } // Token: 0x06000EF6 RID: 3830 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EF6")] [Address(RVA = "0x4FDF10", Offset = "0x4FC710", VA = "0x1804FDF10")] public string[] GetInvalidGamepadPaths() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06000EF7 RID: 3831 RVA: 0x00023C40 File Offset: 0x00021E40 [Token(Token = "0x6000EF7")] [Address(RVA = "0x4FE8B0", Offset = "0x4FD0B0", VA = "0x1804FE8B0")] private string[] GetSpecialPathKeywords() { string[] array; do { array = new string[1]; } while ("Dual" != 0 && array == 0); array[0] = "Dual"; return array; } // Token: 0x06000EF8 RID: 3832 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6000EF8")] [Address(RVA = "0x4FF830", Offset = "0x4FE030", VA = "0x1804FF830")] private bool TryGetAlternativeGamepadPath(string buttonName, out string newEffectivePath) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x04001989 RID: 6537 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4001989")] public Dictionary keyboardPathMap; // Token: 0x0400198A RID: 6538 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400198A")] public Dictionary gamepadPathMap; // Token: 0x02000123 RID: 291 [Token(Token = "0x2000123")] private class RebindingCmd { // Token: 0x17000064 RID: 100 // (get) Token: 0x06000EFA RID: 3834 RVA: 0x00023C88 File Offset: 0x00021E88 // (set) Token: 0x06000EF9 RID: 3833 RVA: 0x00023C74 File Offset: 0x00021E74 [Token(Token = "0x17000064")] public string InputActionName { [Token(Token = "0x6000EFA")] [Address(RVA = "0x345100", Offset = "0x343900", VA = "0x180345100")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6000EF9")] [Address(RVA = "0x3CBE00", Offset = "0x3CA600", VA = "0x1803CBE00")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06000EF9) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameControllerKeyMaps/RebindingCmd::set_InputActionName(System.String) ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; stfld:string(RebindingCmd::k__BackingField, ldloc:RebindingCmd(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: 0x17000065 RID: 101 // (get) Token: 0x06000EFC RID: 3836 RVA: 0x00023CB0 File Offset: 0x00021EB0 // (set) Token: 0x06000EFB RID: 3835 RVA: 0x00023C9C File Offset: 0x00021E9C [Token(Token = "0x17000065")] public Action RebindHandler { [Token(Token = "0x6000EFC")] [Address(RVA = "0x2DB450", Offset = "0x2D9C50", VA = "0x1802DB450")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6000EFB")] [Address(RVA = "0x454D70", Offset = "0x453570", VA = "0x180454D70")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06000EFB) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameControllerKeyMaps/RebindingCmd::set_RebindHandler(System.Action`2) ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; stfld:class [mscorlib]System.Action`2(RebindingCmd::k__BackingField, ldloc:RebindingCmd(this), ldloc:class [mscorlib]System.Action`2(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: 0x17000066 RID: 102 // (get) Token: 0x06000EFE RID: 3838 RVA: 0x00023CD8 File Offset: 0x00021ED8 // (set) Token: 0x06000EFD RID: 3837 RVA: 0x00023CC4 File Offset: 0x00021EC4 [Token(Token = "0x17000066")] public string[] MatchPaths { [Token(Token = "0x6000EFE")] [Address(RVA = "0x2990A0", Offset = "0x2978A0", VA = "0x1802990A0")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6000EFD")] [Address(RVA = "0x453BA0", Offset = "0x4523A0", VA = "0x180453BA0")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06000EFD) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameControllerKeyMaps/RebindingCmd::set_MatchPaths(System.String[]) ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; stfld:string[](RebindingCmd::k__BackingField, ldloc:RebindingCmd(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: 0x17000067 RID: 103 // (get) Token: 0x06000F00 RID: 3840 RVA: 0x00023D00 File Offset: 0x00021F00 // (set) Token: 0x06000EFF RID: 3839 RVA: 0x00023CEC File Offset: 0x00021EEC [Token(Token = "0x17000067")] public bool IsKeyboardMode { [Token(Token = "0x6000F00")] [Address(RVA = "0x4FB5B0", Offset = "0x4F9DB0", VA = "0x1804FB5B0")] get; [Token(Token = "0x6000EFF")] [Address(RVA = "0x606820", Offset = "0x605020", VA = "0x180606820")] set; } // Token: 0x06000F01 RID: 3841 RVA: 0x00023D14 File Offset: 0x00021F14 [Token(Token = "0x6000F01")] [Address(RVA = "0x43A830", Offset = "0x439030", VA = "0x18043A830")] public RebindingCmd() { } } }