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
Touch.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4namespace InControl
5{
6 // Token: 0x0200004C RID: 76
7 public class Touch
8 {
9 // Token: 0x060003B2 RID: 946 RVA: 0x0000C70C File Offset: 0x0000A90C
10 internal Touch()
11 {
12 this.phase = TouchPhase.Ended;
13 }
14
15 // Token: 0x060003B3 RID: 947 RVA: 0x0000C728 File Offset: 0x0000A928
16 internal void Reset()
17 {
18 }
19
20 // Token: 0x17000124 RID: 292
21 // (get) Token: 0x060003B4 RID: 948 RVA: 0x0000C738 File Offset: 0x0000A938
22 [Obsolete("normalizedPressure is deprecated, please use NormalizedPressure instead.")]
23 public float normalizedPressure
24 {
25 get
26 {
27 /*
28An exception occurred when decompiling this method (060003B4)
29
30ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Touch::get_normalizedPressure()
31
32 ---> System.Exception: Basic block has to end with unconditional control flow.
33{
34 Block_0:
35 stloc:float32(var_0_06, ldfld:float32(Touch::maximumPossiblePressure, ldloc:Touch(this)))
36 stloc:float32(var_1_0D, ldfld:float32(Touch::pressure, ldloc:Touch(this)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48 }
49
50 // Token: 0x17000125 RID: 293
51 // (get) Token: 0x060003B5 RID: 949 RVA: 0x0000C754 File Offset: 0x0000A954
52 public float NormalizedPressure
53 {
54 get
55 {
56 /*
57An exception occurred when decompiling this method (060003B5)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Touch::get_NormalizedPressure()
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 Block_0:
64 stloc:float32(var_0_06, ldfld:float32(Touch::maximumPossiblePressure, ldloc:Touch(this)))
65 stloc:float32(var_1_0D, ldfld:float32(Touch::pressure, ldloc:Touch(this)))
66}
67
68 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
69 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
70 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
71 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
72 --- End of inner exception stack trace ---
73 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
74 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
75*/;
76 }
77 }
78
79 // Token: 0x17000126 RID: 294
80 // (get) Token: 0x060003B6 RID: 950 RVA: 0x0000C770 File Offset: 0x0000A970
81 public bool IsMouse
82 {
83 get
84 {
85 /*
86An exception occurred when decompiling this method (060003B6)
87
88ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.Touch::get_IsMouse()
89
90 ---> System.Exception: Basic block has to end with unconditional control flow.
91{
92 Block_0:
93 stloc:TouchType(var_0_06, ldfld:TouchType(Touch::type, ldloc:Touch(this)))
94}
95
96 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
97 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
98 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
99 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
100 --- End of inner exception stack trace ---
101 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
102 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
103*/;
104 }
105 }
106
107 // Token: 0x060003B7 RID: 951 RVA: 0x0000C784 File Offset: 0x0000A984
109 {
112 int num = touch.tapCount;
113 this.tapCount = num;
114 float num2 = touch.altitudeAngle;
115 float num3 = touch.azimuthAngle;
116 float num4 = touch.maximumPossiblePressure;
117 float num5 = touch.pressure;
118 float num6 = touch.radius;
119 float num7 = touch.radiusVariance;
120 Vector2 vector = touch.position;
121 int width = Screen.width;
122 int height = Screen.height;
123 if (this.phase == TouchPhase.Began)
124 {
125 return;
126 }
127 float x = this.lastPosition.x;
128 float y = this.lastPosition.y;
129 Vector2 vector2 = this.position;
134 }
135
136 // Token: 0x060003B8 RID: 952 RVA: 0x0000C854 File Offset: 0x0000AA54
137 internal bool SetWithMouseData(int button, ulong updateTick, float deltaTime)
138 {
139 int touchCount = Input.touchCount;
140 Vector3 mousePosition = Input.mousePosition;
143 this.mouseButton = button;
144 this.type = TouchType.Mouse;
146 bool mouseButtonUp = Input.GetMouseButtonUp(43134976);
147 this.mouseButton = 43134976;
149 float x = this.lastPosition.x;
150 Vector2 vector = this.position;
151 this.type = TouchType.Mouse;
152 this.lastPosition = vector;
153 return mouseButtonUp;
154 }
155
156 // Token: 0x04000343 RID: 835
157 public const int FingerID_None = -1;
158
159 // Token: 0x04000344 RID: 836
160 public const int FingerID_Mouse = -2;
161
162 // Token: 0x04000345 RID: 837
163 public int fingerId;
164
165 // Token: 0x04000346 RID: 838
166 public int mouseButton;
167
168 // Token: 0x04000347 RID: 839
170
171 // Token: 0x04000348 RID: 840
172 public int tapCount;
173
174 // Token: 0x04000349 RID: 841
176
177 // Token: 0x0400034A RID: 842
179
180 // Token: 0x0400034B RID: 843
182
183 // Token: 0x0400034C RID: 844
185
186 // Token: 0x0400034D RID: 845
187 public float deltaTime;
188
189 // Token: 0x0400034E RID: 846
191
192 // Token: 0x0400034F RID: 847
194
195 // Token: 0x04000350 RID: 848
196 public float altitudeAngle;
197
198 // Token: 0x04000351 RID: 849
199 public float azimuthAngle;
200
201 // Token: 0x04000352 RID: 850
203
204 // Token: 0x04000353 RID: 851
205 public float pressure;
206
207 // Token: 0x04000354 RID: 852
208 public float radius;
209
210 // Token: 0x04000355 RID: 853
211 public float radiusVariance;
212 }
213}
class f__AnonymousType0<< Count > j__TPar
float deltaTime
Definition Touch.cs:187
ulong updateTick
Definition Touch.cs:190
int mouseButton
Definition Touch.cs:166
void Reset()
Definition Touch.cs:16
float NormalizedPressure
Definition Touch.cs:53
float azimuthAngle
Definition Touch.cs:199
float altitudeAngle
Definition Touch.cs:196
bool SetWithMouseData(int button, ulong updateTick, float deltaTime)
Definition Touch.cs:137
float pressure
Definition Touch.cs:205
Vector2 position
Definition Touch.cs:175
float maximumPossiblePressure
Definition Touch.cs:202
Vector2 deltaPosition
Definition Touch.cs:181
void SetWithTouchData(Touch touch, ulong updateTick, float deltaTime)
Definition Touch.cs:108
Vector2 lastPosition
Definition Touch.cs:184
Vector2 startPosition
Definition Touch.cs:178
float normalizedPressure
Definition Touch.cs:24
TouchPhase phase
Definition Touch.cs:169
float radius
Definition Touch.cs:208
TouchType type
Definition Touch.cs:193
bool IsMouse
Definition Touch.cs:82
const int FingerID_Mouse
Definition Touch.cs:160
float radiusVariance
Definition Touch.cs:211
const int FingerID_None
Definition Touch.cs:157
static Vector3 mousePosition
Definition Input.cs:127
static bool GetMouseButtonUp(int button)
Definition Input.cs:62
static bool GetMouseButtonDown(int button)
Definition Input.cs:55
static int touchCount
Definition Input.cs:199
static int height
Definition Screen.cs:28
static int width
Definition Screen.cs:17