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
TouchManager.cs
Go to the documentation of this file.
1using System;
8using UnityEngine;
9
10namespace InControl
11{
12 // Token: 0x02000053 RID: 83
14 public class TouchManager : SingletonMonoBehavior<TouchManager>
15 {
16 // Token: 0x1400000F RID: 15
17 // (add) Token: 0x060003D2 RID: 978 RVA: 0x0000CBCC File Offset: 0x0000ADCC
18 // (remove) Token: 0x060003D3 RID: 979 RVA: 0x0000CBE4 File Offset: 0x0000ADE4
19 public static event Action OnSetup
20 {
22 add
23 {
25 if (@delegate != null)
26 {
27 }
28 }
30 remove
31 {
33 if (@delegate != null)
34 {
35 }
36 }
37 }
38
39 // Token: 0x060003D4 RID: 980 RVA: 0x0000CBFC File Offset: 0x0000ADFC
40 protected TouchManager()
41 {
42 if (3 == 0)
43 {
44 }
45 base..ctor();
46 }
47
48 // Token: 0x060003D5 RID: 981 RVA: 0x0000CC28 File Offset: 0x0000AE28
49 private void OnEnable()
50 {
51 InControlManager component = base.GetComponent<InControlManager>();
52 Debug.LogError("Touch Manager component can only be added to the InControl Manager object.");
53 global::UnityEngine.Object.DestroyImmediate(this);
54 }
55
56 // Token: 0x060003D6 RID: 982 RVA: 0x0000CC70 File Offset: 0x0000AE70
57 private void OnDisable()
58 {
59 bool isPlaying = Application.isPlaying;
60 this.Reset();
61 }
62
63 // Token: 0x060003D7 RID: 983 RVA: 0x0000CC8C File Offset: 0x0000AE8C
64 private void Setup()
65 {
67 this.CreateDevice();
68 this.CreateTouches();
69 }
70
71 // Token: 0x060003D8 RID: 984 RVA: 0x0000CCAC File Offset: 0x0000AEAC
72 private void Reset()
73 {
74 Touch[] array = this.mouseTouches;
75 }
76
77 // Token: 0x060003D9 RID: 985 RVA: 0x000025E1 File Offset: 0x000007E1
79 {
80 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
81 }
82
83 // Token: 0x060003DA RID: 986 RVA: 0x0000CCC4 File Offset: 0x0000AEC4
84 private void Update()
85 {
87 if (this.isReady)
88 {
89 float x = this.screenSize.x;
90 float y = this.screenSize.y;
91 return;
92 }
93 IEnumerator enumerator = this.UpdateScreenSizeAtEndOfFrame();
94 Coroutine coroutine = base.StartCoroutine(enumerator);
95 this.isReady = true;
96 }
97
98 // Token: 0x060003DB RID: 987 RVA: 0x0000CD10 File Offset: 0x0000AF10
121
122 // Token: 0x060003DC RID: 988 RVA: 0x0000CDC4 File Offset: 0x0000AFC4
123 private void UpdateDevice(ulong updateTick, float deltaTime)
124 {
125 this.UpdateTouches(updateTick, deltaTime);
126 this.SubmitControlStates(updateTick, deltaTime);
127 }
128
129 // Token: 0x060003DD RID: 989 RVA: 0x0000CDE4 File Offset: 0x0000AFE4
130 private void CommitDevice(ulong updateTick, float deltaTime)
131 {
132 this.CommitControlStates(updateTick, deltaTime);
133 }
134
135 // Token: 0x060003DE RID: 990 RVA: 0x0000CDFC File Offset: 0x0000AFFC
136 private void SubmitControlStates(ulong updateTick, float deltaTime)
137 {
139 bool enabled = base.enabled;
140 GameObject gameObject;
141 bool activeInHierarchy = gameObject.activeInHierarchy;
143 throw new MissingMethodException();
144 }
145
146 // Token: 0x060003DF RID: 991 RVA: 0x0000CE30 File Offset: 0x0000B030
147 private void CommitControlStates(ulong updateTick, float deltaTime)
148 {
150 bool enabled = base.enabled;
151 GameObject gameObject;
152 bool activeInHierarchy = gameObject.activeInHierarchy;
154 throw new MissingMethodException();
155 }
156
157 // Token: 0x060003E0 RID: 992 RVA: 0x0000CE64 File Offset: 0x0000B064
159 {
160 Camera camera = this.touchCamera;
163 float orthographicSize = this.touchCamera.orthographicSize;
164 float y = this.screenSize.y;
166 if (this.touchControls != null)
167 {
169 }
170 }
171
172 // Token: 0x060003E1 RID: 993 RVA: 0x0000CEBC File Offset: 0x0000B0BC
173 private void CreateTouches()
174 {
175 Touch[] array = this.mouseTouches;
176 Touch[] array2 = this.mouseTouches;
177 }
178
179 // Token: 0x060003E2 RID: 994 RVA: 0x000025E1 File Offset: 0x000007E1
180 private void UpdateTouches(ulong updateTick, float deltaTime)
181 {
182 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
183 }
184
185 // Token: 0x060003E3 RID: 995 RVA: 0x0000CEE4 File Offset: 0x0000B0E4
187 {
189 bool enabled = base.enabled;
190 GameObject gameObject;
191 bool activeInHierarchy = gameObject.activeInHierarchy;
192 throw new MissingMethodException();
193 }
194
195 // Token: 0x060003E4 RID: 996 RVA: 0x0000CF10 File Offset: 0x0000B110
197 {
199 bool enabled = base.enabled;
200 GameObject gameObject;
201 bool activeInHierarchy = gameObject.activeInHierarchy;
203 throw new MissingMethodException();
204 }
205
206 // Token: 0x060003E5 RID: 997 RVA: 0x0000CF44 File Offset: 0x0000B144
208 {
210 bool enabled = base.enabled;
211 GameObject gameObject;
212 bool activeInHierarchy = gameObject.activeInHierarchy;
214 throw new MissingMethodException();
215 }
216
217 // Token: 0x060003E6 RID: 998 RVA: 0x0000CF78 File Offset: 0x0000B178
218 private void InvokeTouchEvents()
219 {
220 int size = this.activeTouches._size;
221 if (this.enableControlsOnTouch && !this._controlsEnabled)
222 {
224 int num = 1;
225 this.controlsEnabled = num != 0;
226 return;
227 }
228 int size2 = this.activeTouches._size;
229 }
230
231 // Token: 0x060003E7 RID: 999 RVA: 0x0000CFC8 File Offset: 0x0000B1C8
232 private bool TouchCameraIsValid()
233 {
234 Camera camera = this.touchCamera;
235 if (!true)
236 {
237 }
238 float orthographicSize = this.touchCamera.orthographicSize;
239 if (!true)
240 {
241 }
242 bool flag = Utility.IsZero(orthographicSize);
243 float width = this.touchCamera.rect.width;
244 if (!true)
245 {
246 }
247 bool flag2 = Utility.IsZero(width);
248 float height = this.touchCamera.rect.height;
249 if (!true)
250 {
251 }
252 bool flag3 = Utility.IsZero(height);
253 float width2 = this.touchCamera.pixelRect.width;
254 if (!true)
255 {
256 }
257 bool flag4 = Utility.IsZero(width2);
258 float height2 = this.touchCamera.pixelRect.height;
259 if (!true)
260 {
261 }
262 bool flag5 = Utility.IsZero(height2);
263 return true;
264 }
265
266 // Token: 0x060003E8 RID: 1000 RVA: 0x0000D080 File Offset: 0x0000B280
268 {
269 bool flag = this.TouchCameraIsValid();
270 Vector3 position = this.touchCamera.transform.position;
271 Vector3 vector;
272 return vector;
273 }
274
275 // Token: 0x060003E9 RID: 1001 RVA: 0x0000D0A8 File Offset: 0x0000B2A8
277 {
278 bool flag = this.TouchCameraIsValid();
279 Vector3 position = this.touchCamera.transform.position;
280 Vector3 vector;
281 return vector;
282 }
283
284 // Token: 0x060003EA RID: 1002 RVA: 0x0000D0D0 File Offset: 0x0000B2D0
286 {
287 bool flag = this.TouchCameraIsValid();
288 Vector3 position = this.touchCamera.transform.position;
289 Vector3 vector;
290 return vector;
291 }
292
293 // Token: 0x060003EB RID: 1003 RVA: 0x0000D0F8 File Offset: 0x0000B2F8
295 {
296 /*
297An exception occurred when decompiling this method (060003EB)
298
299ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector2 InControl.TouchManager::GetCurrentScreenSize()
300
301 ---> System.Exception: Basic block has to end with unconditional control flow.
302{
303 Block_0:
304 stloc:bool(var_0_06, call:bool(TouchManager::TouchCameraIsValid, ldloc:TouchManager(this)))
305 stloc:int32(var_1_12, callgetter:int32(Camera::get_pixelWidth, ldfld:Camera(TouchManager::touchCamera, ldloc:TouchManager(this))))
306 stloc:int32(var_2_1E, callgetter:int32(Camera::get_pixelHeight, ldfld:Camera(TouchManager::touchCamera, ldloc:TouchManager(this))))
307 stloc:int32(var_4_26, callgetter:int32(Screen::get_width))
308 stloc:int32(var_6_30, callgetter:int32(Screen::get_height))
309}
310
311 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
312 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
313 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
314 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
315 --- End of inner exception stack trace ---
316 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
317 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
318*/;
319 }
320
321 // Token: 0x17000127 RID: 295
322 // (get) Token: 0x060003EC RID: 1004 RVA: 0x0000D138 File Offset: 0x0000B338
323 // (set) Token: 0x060003ED RID: 1005 RVA: 0x0000D14C File Offset: 0x0000B34C
324 public bool controlsEnabled
325 {
326 get
327 {
328 return this._controlsEnabled;
329 }
330 set
331 {
337 }
338 }
339
340 // Token: 0x17000128 RID: 296
341 // (get) Token: 0x060003EE RID: 1006 RVA: 0x0000D180 File Offset: 0x0000B380
343 {
344 get
345 {
346 /*
347An exception occurred when decompiling this method (060003EE)
348
349ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ObjectModel.ReadOnlyCollection`1<InControl.Touch> InControl.TouchManager::get_Touches()
350
351 ---> System.Exception: Basic block has to end with unconditional control flow.
352{
353 IL_0003:
354 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
355}
356
357 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
358 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
359 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
360 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
361 --- End of inner exception stack trace ---
362 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
363 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
364*/;
365 }
366 }
367
368 // Token: 0x17000129 RID: 297
369 // (get) Token: 0x060003EF RID: 1007 RVA: 0x0000D198 File Offset: 0x0000B398
370 public static int TouchCount
371 {
372 get
373 {
374 /*
375An exception occurred when decompiling this method (060003EF)
376
377ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 InControl.TouchManager::get_TouchCount()
378
379 ---> System.Exception: Basic block has to end with unconditional control flow.
380{
381 IL_0003:
382 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
383}
384
385 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
386 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
387 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
388 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
389 --- End of inner exception stack trace ---
390 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
391 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
392*/;
393 }
394 }
395
396 // Token: 0x060003F0 RID: 1008 RVA: 0x0000D1B0 File Offset: 0x0000B3B0
397 public static Touch GetTouch(int touchIndex)
398 {
399 /*
400An exception occurred when decompiling this method (060003F0)
401
402ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.Touch InControl.TouchManager::GetTouch(System.Int32)
403
404 ---> System.Exception: Basic block has to end with unconditional control flow.
405{
406 IL_0003:
407 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
408}
409
410 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
411 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
412 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
413 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
414 --- End of inner exception stack trace ---
415 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
416 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
417*/;
418 }
419
420 // Token: 0x060003F1 RID: 1009 RVA: 0x0000D1C8 File Offset: 0x0000B3C8
421 public static Touch GetTouchByFingerId(int fingerId)
422 {
423 if (!true)
424 {
425 }
427 Touch touch;
428 return touch;
429 }
430
431 // Token: 0x060003F2 RID: 1010 RVA: 0x0000D1E0 File Offset: 0x0000B3E0
432 public static Vector3 ScreenToWorldPoint(Vector2 point)
433 {
434 if (!true)
435 {
436 }
438 return 1;
439 }
440
441 // Token: 0x060003F3 RID: 1011 RVA: 0x0000D1F8 File Offset: 0x0000B3F8
442 public static Vector3 ViewToWorldPoint(Vector2 point)
443 {
444 if (!true)
445 {
446 }
448 return 1;
449 }
450
451 // Token: 0x060003F4 RID: 1012 RVA: 0x0000D210 File Offset: 0x0000B410
452 public static Vector3 ScreenToViewPoint(Vector2 point)
453 {
454 if (!true)
455 {
456 }
458 return 1;
459 }
460
461 // Token: 0x060003F5 RID: 1013 RVA: 0x0000D228 File Offset: 0x0000B428
462 public static float ConvertToWorld(float value, TouchUnitType unitType)
463 {
464 /*
465An exception occurred when decompiling this method (060003F5)
466
467ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.TouchManager::ConvertToWorld(System.Single,InControl.TouchUnitType)
468
469 ---> System.Exception: Basic block has to end with unconditional control flow.
470{
471 Block_0:
472 stloc:float32(var_0_05, callgetter:float32(TouchManager::get_PixelToWorld))
473 stloc:float32(var_1_0B, callgetter:float32(TouchManager::get_PercentToWorld))
474}
475
476 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
477 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
478 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
479 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
480 --- End of inner exception stack trace ---
481 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
482 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
483*/;
484 }
485
486 // Token: 0x060003F6 RID: 1014 RVA: 0x0000D240 File Offset: 0x0000B440
487 public static Rect PercentToWorldRect(Rect rect)
488 {
489 /*
490An exception occurred when decompiling this method (060003F6)
491
492ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect InControl.TouchManager::PercentToWorldRect(UnityEngine.Rect)
493
494 ---> System.Exception: Basic block has to end with unconditional control flow.
495{
496 Block_0:
497 stloc:Vector3(var_1_05, callgetter:Vector3(TouchManager::get_ViewSize))
498 stloc:Vector3(var_3_0B, callgetter:Vector3(TouchManager::get_ViewSize))
499 stloc:Vector3(var_5_11, callgetter:Vector3(TouchManager::get_ViewSize))
500 stloc:Vector3(var_7_18, callgetter:Vector3(TouchManager::get_ViewSize))
501}
502
503 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
504 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
505 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
506 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
507 --- End of inner exception stack trace ---
508 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
509 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
510*/;
511 }
512
513 // Token: 0x060003F7 RID: 1015 RVA: 0x0000D268 File Offset: 0x0000B468
514 public static Rect PixelToWorldRect(Rect rect)
515 {
516 /*
517An exception occurred when decompiling this method (060003F7)
518
519ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect InControl.TouchManager::PixelToWorldRect(UnityEngine.Rect)
520
521 ---> System.Exception: Basic block has to end with unconditional control flow.
522{
523 Block_0:
524 stloc:Vector2(var_1_05, callgetter:Vector2(TouchManager::get_HalfScreenSize))
525 stloc:float32(var_2_0B, callgetter:float32(TouchManager::get_PixelToWorld))
526 stloc:Vector2(var_4_11, callgetter:Vector2(TouchManager::get_HalfScreenSize))
527 stloc:float32(var_5_18, callgetter:float32(TouchManager::get_PixelToWorld))
528 stloc:float32(var_7_1F, callgetter:float32(TouchManager::get_PixelToWorld))
529 stloc:float32(var_9_26, callgetter:float32(TouchManager::get_PixelToWorld))
530}
531
532 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
533 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
534 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
535 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
536 --- End of inner exception stack trace ---
537 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
538 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
539*/;
540 }
541
542 // Token: 0x060003F8 RID: 1016 RVA: 0x0000D29C File Offset: 0x0000B49C
544 {
545 Rect rect2;
546 return rect2;
547 }
548
549 // Token: 0x1700012A RID: 298
550 // (get) Token: 0x060003F9 RID: 1017 RVA: 0x0000D2B4 File Offset: 0x0000B4B4
551 public static Camera Camera
552 {
553 get
554 {
555 /*
556An exception occurred when decompiling this method (060003F9)
557
558ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Camera InControl.TouchManager::get_Camera()
559
560 ---> System.Exception: Basic block has to end with unconditional control flow.
561{
562 IL_0003:
563 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
564}
565
566 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
567 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
568 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
569 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
570 --- End of inner exception stack trace ---
571 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
572 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
573*/;
574 }
575 }
576
577 // Token: 0x1700012B RID: 299
578 // (get) Token: 0x060003FA RID: 1018 RVA: 0x0000D2CC File Offset: 0x0000B4CC
579 public static InputDevice Device
580 {
581 get
582 {
583 /*
584An exception occurred when decompiling this method (060003FA)
585
586ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.InputDevice InControl.TouchManager::get_Device()
587
588 ---> System.Exception: Basic block has to end with unconditional control flow.
589{
590 IL_0003:
591 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
592}
593
594 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
595 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
596 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
597 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
598 --- End of inner exception stack trace ---
599 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
600 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
601*/;
602 }
603 }
604
605 // Token: 0x1700012C RID: 300
606 // (get) Token: 0x060003FB RID: 1019 RVA: 0x0000D2E4 File Offset: 0x0000B4E4
607 public static Vector3 ViewSize
608 {
609 get
610 {
611 if (!true)
612 {
613 }
615 return 1;
616 }
617 }
618
619 // Token: 0x1700012D RID: 301
620 // (get) Token: 0x060003FC RID: 1020 RVA: 0x0000D2FC File Offset: 0x0000B4FC
621 public static float PercentToWorld
622 {
623 get
624 {
625 /*
626An exception occurred when decompiling this method (060003FC)
627
628ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.TouchManager::get_PercentToWorld()
629
630 ---> System.Exception: Basic block has to end with unconditional control flow.
631{
632 IL_0003:
633 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
634}
635
636 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
637 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
638 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
639 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
640 --- End of inner exception stack trace ---
641 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
642 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
643*/;
644 }
645 }
646
647 // Token: 0x1700012E RID: 302
648 // (get) Token: 0x060003FD RID: 1021 RVA: 0x0000D314 File Offset: 0x0000B514
649 public static float HalfPercentToWorld
650 {
651 get
652 {
653 /*
654An exception occurred when decompiling this method (060003FD)
655
656ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.TouchManager::get_HalfPercentToWorld()
657
658 ---> System.Exception: Basic block has to end with unconditional control flow.
659{
660 IL_0003:
661 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
662}
663
664 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
665 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
666 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
667 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
668 --- End of inner exception stack trace ---
669 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
670 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
671*/;
672 }
673 }
674
675 // Token: 0x1700012F RID: 303
676 // (get) Token: 0x060003FE RID: 1022 RVA: 0x0000D32C File Offset: 0x0000B52C
677 public static float PixelToWorld
678 {
679 get
680 {
681 /*
682An exception occurred when decompiling this method (060003FE)
683
684ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.TouchManager::get_PixelToWorld()
685
686 ---> System.Exception: Basic block has to end with unconditional control flow.
687{
688 IL_0003:
689 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
690}
691
692 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
693 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
694 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
695 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
696 --- End of inner exception stack trace ---
697 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
698 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
699*/;
700 }
701 }
702
703 // Token: 0x17000130 RID: 304
704 // (get) Token: 0x060003FF RID: 1023 RVA: 0x0000D344 File Offset: 0x0000B544
705 public static float HalfPixelToWorld
706 {
707 get
708 {
709 /*
710An exception occurred when decompiling this method (060003FF)
711
712ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.TouchManager::get_HalfPixelToWorld()
713
714 ---> System.Exception: Basic block has to end with unconditional control flow.
715{
716 IL_0003:
717 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
718}
719
720 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
721 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
722 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
723 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
724 --- End of inner exception stack trace ---
725 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
726 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
727*/;
728 }
729 }
730
731 // Token: 0x17000131 RID: 305
732 // (get) Token: 0x06000400 RID: 1024 RVA: 0x0000D35C File Offset: 0x0000B55C
733 public static Vector2 ScreenSize
734 {
735 get
736 {
737 if (!true)
738 {
739 }
741 return 1;
742 }
743 }
744
745 // Token: 0x17000132 RID: 306
746 // (get) Token: 0x06000401 RID: 1025 RVA: 0x0000D374 File Offset: 0x0000B574
748 {
749 get
750 {
751 if (!true)
752 {
753 }
755 return 1;
756 }
757 }
758
759 // Token: 0x17000133 RID: 307
760 // (get) Token: 0x06000402 RID: 1026 RVA: 0x0000D38C File Offset: 0x0000B58C
762 {
763 get
764 {
765 /*
766An exception occurred when decompiling this method (06000402)
767
768ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.TouchManager/GizmoShowOption InControl.TouchManager::get_ControlsShowGizmos()
769
770 ---> System.Exception: Basic block has to end with unconditional control flow.
771{
772 IL_0003:
773 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
774}
775
776 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
777 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
778 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
779 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
780 --- End of inner exception stack trace ---
781 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
782 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
783*/;
784 }
785 }
786
787 // Token: 0x17000134 RID: 308
788 // (get) Token: 0x06000403 RID: 1027 RVA: 0x0000D3A4 File Offset: 0x0000B5A4
789 // (set) Token: 0x06000404 RID: 1028 RVA: 0x0000D3BC File Offset: 0x0000B5BC
790 public static bool ControlsEnabled
791 {
792 get
793 {
794 /*
795An exception occurred when decompiling this method (06000403)
796
797ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.TouchManager::get_ControlsEnabled()
798
799 ---> System.Exception: Basic block has to end with unconditional control flow.
800{
801 IL_0003:
802 stloc:!0(var_0_08, callgetter:!0(SingletonMonoBehavior`1::get_Instance))
803}
804
805 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
806 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
807 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
808 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
809 --- End of inner exception stack trace ---
810 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
811 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
812*/;
813 }
814 set
815 {
816 if (!true)
817 {
818 }
820 }
821 }
822
823 // Token: 0x06000405 RID: 1029 RVA: 0x0000D3D4 File Offset: 0x0000B5D4
824 public static implicit operator bool(TouchManager instance)
825 {
826 if (!true)
827 {
828 }
829 bool flag;
830 return flag;
831 }
832
833 // Token: 0x04000395 RID: 917
834 [Space(10f)]
836
837 // Token: 0x04000396 RID: 918
839
840 // Token: 0x04000397 RID: 919
843
844 // Token: 0x04000398 RID: 920
847 private bool _controlsEnabled = true;
848
849 // Token: 0x04000399 RID: 921
851 public int controlsLayer = 5;
852
853 // Token: 0x0400039A RID: 922
855 private static Action OnSetup;
856
857 // Token: 0x0400039B RID: 923
859
860 // Token: 0x0400039C RID: 924
862
863 // Token: 0x0400039D RID: 925
865
866 // Token: 0x0400039E RID: 926
868
869 // Token: 0x0400039F RID: 927
870 private float percentToWorld;
871
872 // Token: 0x040003A0 RID: 928
873 private float halfPercentToWorld;
874
875 // Token: 0x040003A1 RID: 929
876 private float pixelToWorld;
877
878 // Token: 0x040003A2 RID: 930
879 private float halfPixelToWorld;
880
881 // Token: 0x040003A3 RID: 931
883
884 // Token: 0x040003A4 RID: 932
886
887 // Token: 0x040003A5 RID: 933
889
890 // Token: 0x040003A6 RID: 934
892
893 // Token: 0x040003A7 RID: 935
894 private bool isReady;
895
896 // Token: 0x040003A8 RID: 936
898
899 // Token: 0x02000054 RID: 84
900 public enum GizmoShowOption
901 {
902 // Token: 0x040003AA RID: 938
903 Never,
904 // Token: 0x040003AB RID: 939
906 // Token: 0x040003AC RID: 940
908 // Token: 0x040003AD RID: 941
909 Always
910 }
911
912 // Token: 0x02000055 RID: 85
914 private sealed class <UpdateScreenSizeAtEndOfFrame>d__28 : IEnumerator<object>, IEnumerator, IDisposable
915 {
916 // Token: 0x06000406 RID: 1030 RVA: 0x0000D3E8 File Offset: 0x0000B5E8
919 {
920 this.<>1__state = <>1__state;
921 }
922
923 // Token: 0x06000407 RID: 1031 RVA: 0x0000D404 File Offset: 0x0000B604
925 void IDisposable.Dispose()
926 {
927 }
928
929 // Token: 0x06000408 RID: 1032 RVA: 0x0000D414 File Offset: 0x0000B614
930 private bool MoveNext()
931 {
932 if (this.<>1__state == 0)
933 {
935 this.<>1__state = 1;
936 Vector2 currentScreenSize = touchManager.GetCurrentScreenSize();
937 long num = 0L;
938 this.<>2__current = num;
939 this.<>1__state = 2;
940 }
941 return true;
942 }
943
944 // Token: 0x17000135 RID: 309
945 // (get) Token: 0x06000409 RID: 1033 RVA: 0x0000D450 File Offset: 0x0000B650
947 {
949 get
950 {
951 return this.<>2__current;
952 }
953 }
954
955 // Token: 0x0600040A RID: 1034 RVA: 0x000025E1 File Offset: 0x000007E1
957 void IEnumerator.Reset()
958 {
959 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
960 }
961
962 // Token: 0x17000136 RID: 310
963 // (get) Token: 0x0600040B RID: 1035 RVA: 0x0000D464 File Offset: 0x0000B664
965 {
967 get
968 {
969 return this.<>2__current;
970 }
971 }
972
973 // Token: 0x040003AE RID: 942
974 private int <>1__state;
975
976 // Token: 0x040003AF RID: 943
977 private object <>2__current;
978
979 // Token: 0x040003B0 RID: 944
980 public TouchManager <>4__this;
981 }
982 }
983}
class f__AnonymousType0<< Count > j__TPar
static void AttachDevice(InputDevice inputDevice)
ReadOnlyCollection< Touch > readOnlyActiveTouches
static TouchManager.GizmoShowOption ControlsShowGizmos
Vector3 ConvertScreenToViewPoint(Vector2 point)
TouchControl[] touchControls
TouchManager.GizmoShowOption controlsShowGizmos
static float PixelToWorld
void SubmitControlStates(ulong updateTick, float deltaTime)
void UpdateScreenSize(Vector2 currentScreenSize)
IEnumerator UpdateScreenSizeAtEndOfFrame()
static float HalfPixelToWorld
static Vector3 ViewToWorldPoint(Vector2 point)
static Vector3 ScreenToWorldPoint(Vector2 point)
static Vector3 ViewSize
readonly Touch[] mouseTouches
static Rect ConvertToWorld(Rect rect, TouchUnitType unitType)
void UpdateDevice(ulong updateTick, float deltaTime)
static Touch GetTouch(int touchIndex)
static InputDevice Device
static ReadOnlyCollection< Touch > Touches
class< UpdateScreenSizeAtEndOfFrame > IEnumerator
void SendTouchMoved(Touch touch)
void CommitControlStates(ulong updateTick, float deltaTime)
List< Touch > activeTouches
static float HalfPercentToWorld
static Touch GetTouchByFingerId(int fingerId)
void SendTouchEnded(Touch touch)
static Vector2 HalfScreenSize
static Rect PercentToWorldRect(Rect rect)
static bool ControlsEnabled
class< UpdateScreenSizeAtEndOfFrame > d__28
static Vector3 ScreenToViewPoint(Vector2 point)
void CommitDevice(ulong updateTick, float deltaTime)
static Vector2 ScreenSize
Vector3 ConvertViewToWorldPoint(Vector2 point)
Vector3 ConvertScreenToWorldPoint(Vector2 point)
static Action OnSetup
static float ConvertToWorld(float value, TouchUnitType unitType)
void SendTouchBegan(Touch touch)
static float PercentToWorld
static Rect PixelToWorldRect(Rect rect)
void UpdateTouches(ulong updateTick, float deltaTime)
static bool IsZero(float value)
Definition Utility.cs:219
float orthographicSize
Definition Camera.cs:61
static void LogError(object message)
Definition Debug.cs:62
float height
Definition Rect.cs:175
float width
Definition Rect.cs:143