terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
GUIControllerHardwareProfileEntry.cs
Go to the documentation of this file.
1using System;
3using Controller;
5using InControl;
9
10// Token: 0x020000B1 RID: 177
12{
13 // Token: 0x06000430 RID: 1072 RVA: 0x0000D724 File Offset: 0x0000B924
18
19 // Token: 0x06000431 RID: 1073 RVA: 0x0000D758 File Offset: 0x0000B958
20 public void CloseOptions()
21 {
22 if (this.displayOptions)
23 {
25 }
26 }
27
28 // Token: 0x06000432 RID: 1074 RVA: 0x0000D774 File Offset: 0x0000B974
29 private string GetMappingName()
30 {
32 return "LB1";
33 }
34
35 // Token: 0x06000433 RID: 1075 RVA: 0x0000D820 File Offset: 0x0000BA20
37 {
38 }
39
40 // Token: 0x1700007E RID: 126
41 // (get) Token: 0x06000434 RID: 1076 RVA: 0x0000D830 File Offset: 0x0000BA30
42 public bool HasMapping
43 {
44 get
45 {
46 /*
47An exception occurred when decompiling this method (06000434)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIControllerHardwareProfileEntry::get_HasMapping()
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 Block_0:
54 stloc:InputControlMapping(var_0_06, ldfld:InputControlMapping(GUIControllerHardwareProfileEntry::Binding, ldloc:GUIControllerHardwareProfileEntry(this)))
55}
56
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
58 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 355
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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 1683
64*/;
65 }
66 }
67
68 // Token: 0x06000435 RID: 1077 RVA: 0x0000D844 File Offset: 0x0000BA44
69 public override void DrawOverlay()
70 {
72 }
73
74 // Token: 0x06000436 RID: 1078 RVA: 0x0000D858 File Offset: 0x0000BA58
75 public void RemoveBinding()
76 {
77 }
78
79 // Token: 0x06000437 RID: 1079 RVA: 0x0000D868 File Offset: 0x0000BA68
90
91 // Token: 0x06000438 RID: 1080 RVA: 0x0000D8B4 File Offset: 0x0000BAB4
101
102 // Token: 0x06000439 RID: 1081 RVA: 0x0000D8EC File Offset: 0x0000BAEC
104 {
106 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
107 {
108 }
109 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
110 {
111 }
112 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
113 {
114 }
115 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
116 {
117 }
118 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
119 {
120 }
121 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
122 {
123 }
124 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
125 {
126 }
127 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
128 {
129 }
130 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
131 {
132 }
133 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
134 {
135 }
136 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
137 {
138 }
139 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
140 {
141 }
142 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
143 {
144 }
145 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
146 {
147 }
148 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
149 {
150 }
151 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
152 {
153 }
154 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
155 {
156 }
157 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
158 {
159 }
160 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
161 {
162 }
163 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
164 {
165 }
166 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
167 {
168 }
169 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
170 {
171 }
172 if (id == GUIControllerHardwareProfileEntry.BindingId.LeftStickUp)
173 {
174 }
176 return texture2D;
177 }
178
179 // Token: 0x0600043A RID: 1082 RVA: 0x0000D9A0 File Offset: 0x0000BBA0
180 public override void Draw()
181 {
182 bool flag = this.displayOptions;
183 if (flag && !this.drawingOverlay)
184 {
187 return;
188 }
189 if (this._optionsBlocker != null)
190 {
191 }
192 bool flag2;
193 if (flag)
194 {
195 flag2 = this.displayOptions;
196 }
199 {
200 if (!flag2)
201 {
202 }
203 return;
204 }
205 if (this.displayOptions)
206 {
207 int num = 1;
210 {
211 if (num == 0)
212 {
213 }
215 }
216 int num2 = 1;
219 {
220 if (num2 == 0)
221 {
222 }
224 }
225 if (this.displayOptions)
226 {
227 InputDevice device = this._device.Device;
229 if (!false)
230 {
231 }
232 return;
233 }
234 }
235 if (this.Binding != null)
236 {
237 return;
238 }
239 string <Value>k__BackingField = Language.GetText("Mobile.UnboundControl").<Value>k__BackingField;
240 if ("Mobile.BoundControl" == null)
241 {
242 }
244 if (optionsBlocker3 != null)
245 {
246 int num3 = 1;
248 int num4;
249 if (num4 == 0)
250 {
251 return;
252 }
253 }
254 }
255
256 // Token: 0x0600043B RID: 1083 RVA: 0x000021DB File Offset: 0x000003DB
257 public override float GetElementHeight()
258 {
259 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
260 }
261
262 // Token: 0x0600043C RID: 1084 RVA: 0x0000DAEC File Offset: 0x0000BCEC
264 {
265 return true;
266 }
267
268 // Token: 0x0600043D RID: 1085 RVA: 0x0000DB04 File Offset: 0x0000BD04
269 // Note: this type is marked as 'beforefieldinit'.
273
274 // Token: 0x04000411 RID: 1041
276
277 // Token: 0x04000412 RID: 1042
279
280 // Token: 0x04000413 RID: 1043
282
283 // Token: 0x04000414 RID: 1044
284 private float buttonScale;
285
286 // Token: 0x04000415 RID: 1045
287 private float scale;
288
289 // Token: 0x04000416 RID: 1046
290 private bool drawingOverlay;
291
292 // Token: 0x04000417 RID: 1047
293 private static int LastButtonMapped;
294
295 // Token: 0x04000418 RID: 1048
296 private const float inputTollerance = 0.1f;
297
298 // Token: 0x04000419 RID: 1049
299 private static float[] InitialInputRange;
300
301 // Token: 0x0400041A RID: 1050
302 public bool displayOptions;
303
304 // Token: 0x0400041B RID: 1051
306
307 // Token: 0x0400041C RID: 1052
309
310 // Token: 0x0400041D RID: 1053
311 public new int SortOrder;
312
313 // Token: 0x020000B2 RID: 178
314 public enum BindingId
315 {
316 // Token: 0x0400041F RID: 1055
318 // Token: 0x04000420 RID: 1056
320 // Token: 0x04000421 RID: 1057
322 // Token: 0x04000422 RID: 1058
324 // Token: 0x04000423 RID: 1059
326 // Token: 0x04000424 RID: 1060
328 // Token: 0x04000425 RID: 1061
330 // Token: 0x04000426 RID: 1062
332 // Token: 0x04000427 RID: 1063
333 DPadUp,
334 // Token: 0x04000428 RID: 1064
335 DPadDown,
336 // Token: 0x04000429 RID: 1065
337 DPadLeft,
338 // Token: 0x0400042A RID: 1066
339 DPadRight,
340 // Token: 0x0400042B RID: 1067
341 Action1,
342 // Token: 0x0400042C RID: 1068
343 Action2,
344 // Token: 0x0400042D RID: 1069
345 Action3,
346 // Token: 0x0400042E RID: 1070
347 Action4,
348 // Token: 0x0400042F RID: 1071
349 Options,
350 // Token: 0x04000430 RID: 1072
351 Switch,
352 // Token: 0x04000431 RID: 1073
354 // Token: 0x04000432 RID: 1074
356 // Token: 0x04000433 RID: 1075
358 // Token: 0x04000434 RID: 1076
360 // Token: 0x04000435 RID: 1077
362 // Token: 0x04000436 RID: 1078
364 // Token: 0x04000437 RID: 1079
365 Count
366 }
367}
class f__AnonymousType0<< Count > j__TPar
static Rectangle _gridItemRegion
new readonly GUIControllerHardwareProfileEntry.BindingId _id
new KeyboardMappingsCategories_Layout.Category Category
Texture2D GetTexure([Out] Rectangle buttonRegion)
GUIControllerHardwareProfileEntry(GUIControllerHardwareProfileEntry.BindingId id, ControllerDevice device)
void RemapToAnalogue(int index, float restingValue, float usedValue)
static void RegisterOverlay(GUIControllerMappingEntryBase entry, Rectangle region)
static LocalizedText GetText(string key)
Definition Language.cs:44