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
BaseInput.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x020000B1 RID: 177
6 public class BaseInput : UIBehaviour
7 {
8 // Token: 0x170001AC RID: 428
9 // (get) Token: 0x0600064C RID: 1612 RVA: 0x000121C0 File Offset: 0x000103C0
10 public virtual string compositionString
11 {
12 get
13 {
15 }
16 }
17
18 // Token: 0x170001AD RID: 429
19 // (get) Token: 0x0600064D RID: 1613 RVA: 0x000121D4 File Offset: 0x000103D4
20 // (set) Token: 0x0600064E RID: 1614 RVA: 0x000121E8 File Offset: 0x000103E8
22 {
23 get
24 {
26 }
27 set
28 {
30 }
31 }
32
33 // Token: 0x170001AE RID: 430
34 // (get) Token: 0x0600064F RID: 1615 RVA: 0x000121FC File Offset: 0x000103FC
35 // (set) Token: 0x06000650 RID: 1616 RVA: 0x00012214 File Offset: 0x00010414
37 {
38 get
39 {
41 Vector2 vector;
42 return vector;
43 }
44 set
45 {
46 }
47 }
48
49 // Token: 0x170001AF RID: 431
50 // (get) Token: 0x06000651 RID: 1617 RVA: 0x00012224 File Offset: 0x00010424
51 public virtual bool mousePresent
52 {
53 get
54 {
55 return Input.mousePresent;
56 }
57 }
58
59 // Token: 0x06000652 RID: 1618 RVA: 0x00012238 File Offset: 0x00010438
60 public virtual bool GetMouseButtonDown(int button)
61 {
62 return Input.GetMouseButtonDown(button);
63 }
64
65 // Token: 0x06000653 RID: 1619 RVA: 0x0001224C File Offset: 0x0001044C
66 public virtual bool GetMouseButtonUp(int button)
67 {
68 return Input.GetMouseButtonUp(button);
69 }
70
71 // Token: 0x06000654 RID: 1620 RVA: 0x00012260 File Offset: 0x00010460
72 public virtual bool GetMouseButton(int button)
73 {
74 return Input.GetMouseButton(button);
75 }
76
77 // Token: 0x170001B0 RID: 432
78 // (get) Token: 0x06000655 RID: 1621 RVA: 0x00012274 File Offset: 0x00010474
79 public virtual Vector2 mousePosition
80 {
81 get
82 {
84 Vector2 vector;
85 return vector;
86 }
87 }
88
89 // Token: 0x170001B1 RID: 433
90 // (get) Token: 0x06000656 RID: 1622 RVA: 0x0001228C File Offset: 0x0001048C
92 {
93 get
94 {
96 Vector2 vector;
97 return vector;
98 }
99 }
100
101 // Token: 0x170001B2 RID: 434
102 // (get) Token: 0x06000657 RID: 1623 RVA: 0x000122A4 File Offset: 0x000104A4
103 public virtual bool touchSupported
104 {
105 get
106 {
107 return Input.touchSupported;
108 }
109 }
110
111 // Token: 0x170001B3 RID: 435
112 // (get) Token: 0x06000658 RID: 1624 RVA: 0x000122B8 File Offset: 0x000104B8
113 public virtual int touchCount
114 {
115 get
116 {
117 return Input.touchCount;
118 }
119 }
120
121 // Token: 0x06000659 RID: 1625 RVA: 0x000122CC File Offset: 0x000104CC
122 public virtual Touch GetTouch(int index)
123 {
126 return touch2;
127 }
128
129 // Token: 0x0600065A RID: 1626 RVA: 0x000122E4 File Offset: 0x000104E4
130 public virtual float GetAxisRaw(string axisName)
131 {
132 /*
133An exception occurred when decompiling this method (0600065A)
134
135ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.EventSystems.BaseInput::GetAxisRaw(System.String)
136
137 ---> System.Exception: Basic block has to end with unconditional control flow.
138{
139 Block_0:
140 stloc:float32(var_0_06, call:float32(Input::GetAxisRaw, ldloc:string(axisName)))
141}
142
143 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
144 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
145 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
146 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
147 --- End of inner exception stack trace ---
148 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
149 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
150*/;
151 }
152
153 // Token: 0x0600065B RID: 1627 RVA: 0x000122F8 File Offset: 0x000104F8
154 public virtual bool GetButtonDown(string buttonName)
155 {
157 }
158
159 // Token: 0x0600065C RID: 1628 RVA: 0x0001230C File Offset: 0x0001050C
160 public BaseInput()
161 {
162 }
163 }
164}
class f__AnonymousType0<< Count > j__TPar
virtual bool GetMouseButtonUp(int button)
Definition BaseInput.cs:66
virtual bool GetButtonDown(string buttonName)
Definition BaseInput.cs:154
virtual Touch GetTouch(int index)
Definition BaseInput.cs:122
virtual IMECompositionMode imeCompositionMode
Definition BaseInput.cs:22
virtual bool GetMouseButton(int button)
Definition BaseInput.cs:72
virtual bool GetMouseButtonDown(int button)
Definition BaseInput.cs:60
virtual float GetAxisRaw(string axisName)
Definition BaseInput.cs:130
virtual Vector2 compositionCursorPos
Definition BaseInput.cs:37
static Vector3 mousePosition
Definition Input.cs:127
static bool mousePresent
Definition Input.cs:188
static IMECompositionMode imeCompositionMode
Definition Input.cs:149
static Touch GetTouch(int index)
Definition Input.cs:79
static bool touchSupported
Definition Input.cs:210
static bool GetMouseButtonUp(int button)
Definition Input.cs:62
static bool GetMouseButtonDown(int button)
Definition Input.cs:55
static Vector2 mouseScrollDelta
Definition Input.cs:138
static string compositionString
Definition Input.cs:163
static Vector2 compositionCursorPos
Definition Input.cs:174
static int touchCount
Definition Input.cs:199
static bool GetMouseButton(int button)
Definition Input.cs:48
static bool GetButtonDown(string buttonName)
Definition Input.cs:41