using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using Cpp2IlInjected; using UnityEngine.InputSystem; // Token: 0x02000147 RID: 327 [Token(Token = "0x2000147")] [Serializable] public class GameControllerKeyMaps { // Token: 0x06001012 RID: 4114 RVA: 0x00025234 File Offset: 0x00023434 [Token(Token = "0x6001012")] [Address(RVA = "0x36FD60", Offset = "0x36ED60", VA = "0x18036FD60")] public GameControllerKeyMaps() { this.ResetKeyboardDefaultPaths(); this.ResetGamepadDefaultPaths(); } // Token: 0x06001013 RID: 4115 RVA: 0x00025254 File Offset: 0x00023454 [Token(Token = "0x6001013")] [Address(RVA = "0x36EF80", Offset = "0x36DF80", VA = "0x18036EF80")] public void ResetKeyboardDefaultPaths() { Dictionary dictionary = new Dictionary(); throw new NullReferenceException(); } // Token: 0x06001014 RID: 4116 RVA: 0x00025324 File Offset: 0x00023524 [Token(Token = "0x6001014")] [Address(RVA = "0x36EC00", Offset = "0x36DC00", VA = "0x18036EC00")] public void ResetGamepadDefaultPaths() { Dictionary dictionary = new Dictionary(); throw new NullReferenceException(); } // Token: 0x06001015 RID: 4117 RVA: 0x00025398 File Offset: 0x00023598 [Token(Token = "0x6001015")] [Address(RVA = "0x36FBC0", Offset = "0x36EBC0", VA = "0x18036FBC0")] public void UpdateKeyboardKey(string inputActionName, string keyCode) { Dictionary dictionary = this.keyboardPathMap; this.UpdateKeymap(dictionary, inputActionName, keyCode); } // Token: 0x06001016 RID: 4118 RVA: 0x000253B8 File Offset: 0x000235B8 [Token(Token = "0x6001016")] [Address(RVA = "0x36FB90", Offset = "0x36EB90", VA = "0x18036FB90")] public void UpdateGamepadKey(string inputActionName, string keyCode) { Dictionary dictionary = this.gamepadPathMap; this.UpdateKeymap(dictionary, inputActionName, keyCode); } // Token: 0x06001017 RID: 4119 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6001017")] [Address(RVA = "0x36FBF0", Offset = "0x36EBF0", VA = "0x18036FBF0")] private void UpdateKeymap(Dictionary map, string inputActionName, string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06001018 RID: 4120 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6001018")] [Address(RVA = "0x36E950", Offset = "0x36D950", VA = "0x18036E950")] public string GetKeyboardKey(string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06001019 RID: 4121 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6001019")] [Address(RVA = "0x36DDF0", Offset = "0x36CDF0", VA = "0x18036DDF0")] public string GetGamepadKey(string keyCode) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600101A RID: 4122 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x600101A")] [Address(RVA = "0x36E0B0", Offset = "0x36D0B0", VA = "0x18036E0B0")] public string GetGamepadUISubmitKeyCode() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600101B RID: 4123 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x600101B")] [Address(RVA = "0x36DFC0", Offset = "0x36CFC0", VA = "0x18036DFC0")] public string GetGamepadUICancelKeyCode() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600101C RID: 4124 RVA: 0x000253D8 File Offset: 0x000235D8 [Token(Token = "0x600101C")] [Address(RVA = "0x36DC90", Offset = "0x36CC90", VA = "0x18036DC90")] 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: 0x0600101D RID: 4125 RVA: 0x00025430 File Offset: 0x00023630 [Token(Token = "0x600101D")] [Address(RVA = "0x36F760", Offset = "0x36E760", VA = "0x18036F760")] 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: 0x0600101E RID: 4126 RVA: 0x000254AC File Offset: 0x000236AC [Token(Token = "0x600101E")] [Address(RVA = "0x36F610", Offset = "0x36E610", VA = "0x18036F610")] 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: 0x0600101F RID: 4127 RVA: 0x00025508 File Offset: 0x00023708 [Token(Token = "0x600101F")] [Address(RVA = "0x36F920", Offset = "0x36E920", VA = "0x18036F920")] 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: 0x06001020 RID: 4128 RVA: 0x00025580 File Offset: 0x00023780 [Token(Token = "0x6001020")] [Address(RVA = "0x36E660", Offset = "0x36D660", VA = "0x18036E660")] 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: 0x06001021 RID: 4129 RVA: 0x0002564C File Offset: 0x0002384C [Token(Token = "0x6001021")] [Address(RVA = "0x36E1A0", Offset = "0x36D1A0", VA = "0x18036E1A0")] public string[] GetInvalidGamepadPaths() { string[] array; for (;;) { array = new string[10]; if ("/start" == 0 || "/start" != 0) { array[0] = "/start"; if ("/select" == 0 || "/select" != 0) { array[1] = "/select"; if ("/leftStick/left" == 0 || "/leftStick/left" != 0) { array[2] = "/leftStick/left"; if ("/leftStick/right" == 0 || "/leftStick/right" != 0) { array[3] = "/leftStick/right"; if ("/leftStick/up" == 0 || "/leftStick/up" != 0) { array[4] = "/leftStick/up"; if ("/leftStick/down" == 0 || "/leftStick/down" != 0) { array[5] = "/leftStick/down"; if ("/rightStick/left" == 0 || "/rightStick/left" != 0) { array[6] = "/rightStick/left"; if ("/rightStick/right" == 0 || "/rightStick/right" != 0) { array[7] = "/rightStick/right"; if ("/rightStick/up" == 0 || "/rightStick/up" != 0) { array[8] = "/rightStick/up"; if ("/rightStick/down" == 0 || "/rightStick/down" != 0) { break; } } } } } } } } } } } array[9] = "/rightStick/down"; return array; } // Token: 0x06001022 RID: 4130 RVA: 0x00025794 File Offset: 0x00023994 [Token(Token = "0x6001022")] [Address(RVA = "0x36EB40", Offset = "0x36DB40", VA = "0x18036EB40")] private string[] GetSpecialPathKeywords() { string[] array; do { array = new string[1]; } while ("Dual" != 0 && array == 0); array[0] = "Dual"; return array; } // Token: 0x06001023 RID: 4131 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6001023")] [Address(RVA = "0x36FAC0", Offset = "0x36EAC0", VA = "0x18036FAC0")] private bool TryGetAlternativeGamepadPath(string buttonName, out string newEffectivePath) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x04001A7B RID: 6779 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4001A7B")] public Dictionary keyboardPathMap; // Token: 0x04001A7C RID: 6780 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4001A7C")] public Dictionary gamepadPathMap; // Token: 0x02000148 RID: 328 [Token(Token = "0x2000148")] private class RebindingCmd { // Token: 0x17000064 RID: 100 // (get) Token: 0x06001025 RID: 4133 RVA: 0x000257DC File Offset: 0x000239DC // (set) Token: 0x06001024 RID: 4132 RVA: 0x000257C8 File Offset: 0x000239C8 [Token(Token = "0x17000064")] public string InputActionName { [Token(Token = "0x6001025")] [Address(RVA = "0x32FD80", Offset = "0x32ED80", VA = "0x18032FD80")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6001024")] [Address(RVA = "0x3EDC60", Offset = "0x3ECC60", VA = "0x1803EDC60")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06001024) 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: 0x06001027 RID: 4135 RVA: 0x00025804 File Offset: 0x00023A04 // (set) Token: 0x06001026 RID: 4134 RVA: 0x000257F0 File Offset: 0x000239F0 [Token(Token = "0x17000065")] public Action RebindHandler { [Token(Token = "0x6001027")] [Address(RVA = "0x2EF530", Offset = "0x2EE530", VA = "0x1802EF530")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6001026")] [Address(RVA = "0x475600", Offset = "0x474600", VA = "0x180475600")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06001026) 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: 0x06001029 RID: 4137 RVA: 0x0002582C File Offset: 0x00023A2C // (set) Token: 0x06001028 RID: 4136 RVA: 0x00025818 File Offset: 0x00023A18 [Token(Token = "0x17000066")] public string[] MatchPaths { [Token(Token = "0x6001029")] [Address(RVA = "0x2990A0", Offset = "0x2980A0", VA = "0x1802990A0")] [CompilerGenerated] get { return this.k__BackingField; } [Token(Token = "0x6001028")] [Address(RVA = "0x454210", Offset = "0x453210", VA = "0x180454210")] [CompilerGenerated] set { /* An exception occurred when decompiling this method (06001028) 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: 0x0600102B RID: 4139 RVA: 0x00025854 File Offset: 0x00023A54 // (set) Token: 0x0600102A RID: 4138 RVA: 0x00025840 File Offset: 0x00023A40 [Token(Token = "0x17000067")] public bool IsKeyboardMode { [Token(Token = "0x600102B")] [Address(RVA = "0x369E30", Offset = "0x368E30", VA = "0x180369E30")] get; [Token(Token = "0x600102A")] [Address(RVA = "0x61C570", Offset = "0x61B570", VA = "0x18061C570")] set; } // Token: 0x0600102C RID: 4140 RVA: 0x00025868 File Offset: 0x00023A68 [Token(Token = "0x600102C")] [Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")] public RebindingCmd() { } } }