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
TestInputManager.cs
Go to the documentation of this file.
1using System;
5using UnityEngine;
6
7namespace InControl
8{
9 // Token: 0x02000072 RID: 114
11 {
12 // Token: 0x06000556 RID: 1366 RVA: 0x00010508 File Offset: 0x0000E708
13 private void OnEnable()
14 {
17 if (!true)
18 {
19 }
20 if (!true)
21 {
22 }
23 }
24
25 // Token: 0x06000557 RID: 1367 RVA: 0x00010530 File Offset: 0x0000E730
26 private void HandleInputUpdate(ulong updateTick, float deltaTime)
27 {
28 int num = 1;
30 if (num == 0)
31 {
32 }
33 if (num == 0)
34 {
35 }
37 float num2 = inputControl;
39 float num3 = inputControl2;
40 }
41
42 // Token: 0x06000558 RID: 1368 RVA: 0x00010560 File Offset: 0x0000E760
43 private void Start()
44 {
45 }
46
47 // Token: 0x06000559 RID: 1369 RVA: 0x00010570 File Offset: 0x0000E770
48 private void Update()
49 {
51 Utility.LoadScene("TestInputManager");
53 if (!true)
54 {
55 }
57 }
58
59 // Token: 0x0600055A RID: 1370 RVA: 0x000105A4 File Offset: 0x0000E7A4
60 private void CheckForPauseButton()
61 {
63 if (!true)
64 {
65 }
66 if (!true)
67 {
68 }
69 if (true)
70 {
71 bool flag = this.isPaused;
72 bool flag2 = this.isPaused;
74 }
75 }
76
77 // Token: 0x0600055B RID: 1371 RVA: 0x000105DC File Offset: 0x0000E7DC
78 private void SetColor(Color color)
79 {
80 GUIStyleState normal = this.style.normal;
81 }
82
83 // Token: 0x0600055C RID: 1372 RVA: 0x000105F8 File Offset: 0x0000E7F8
84 private void OnGUI()
85 {
86 int width = Screen.width;
87 GUISkin skin = GUI.skin;
88 int num = 1;
89 if (num == 0)
90 {
91 }
93 string text2;
94 string text3;
95 string text = text2 + " " + text3;
96 if (num != 0)
97 {
98 return;
99 }
100 if (num == 0)
101 {
102 }
103 if (num == 0)
104 {
105 }
106 }
107
108 // Token: 0x0600055D RID: 1373 RVA: 0x00010A3C File Offset: 0x0000EC3C
110 {
111 int width = Screen.width;
112 string[] joystickNames = Input.GetJoystickNames();
113 string text;
114 if (("Joystick " == null || "Joystick " != null) && (text == null || text != null) && (": \"" == null || ": \"" != null) && ": \"" != null)
115 {
116 string text2;
117 string text3;
118 bool key = Input.GetKey("joystick " + text2 + " button " + text3);
119 string text5;
120 string text4 = "Buttons: " + "B" + text5 + " ";
121 string text6;
122 string text7;
123 float axisRaw = Input.GetAxisRaw("joystick " + text6 + " analog " + text7);
124 if ("joystick " == null)
125 {
126 }
127 string text8;
128 string text9;
129 if (("Analogs: " == null || "Analogs: " != null) && ("A" == null || "A" != null) && (text8 == null || text8 != null) && (": " == null || ": " != null) && (text9 == null || text9 != null) && (" " == null || " " != null))
130 {
131 return;
132 }
133 }
134 throw new ArrayTypeMismatchException();
135 }
136
137 // Token: 0x0600055E RID: 1374 RVA: 0x00010B3C File Offset: 0x0000ED3C
138 private void OnDrawGizmos()
139 {
140 if (!true)
141 {
142 }
144 TwoAxisInputControl direction = activeDevice.Direction;
145 TwoAxisInputControl <RightStick>k__BackingField = activeDevice.<RightStick>k__BackingField;
146 }
147
148 // Token: 0x0600055F RID: 1375 RVA: 0x00010B7C File Offset: 0x0000ED7C
150 {
151 }
152
153 // Token: 0x06000560 RID: 1376 RVA: 0x000025E1 File Offset: 0x000007E1
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159
160 // Token: 0x04000401 RID: 1025
161 public Font font;
162
163 // Token: 0x04000402 RID: 1026
165
166 // Token: 0x04000403 RID: 1027
168
169 // Token: 0x04000404 RID: 1028
170 private bool isPaused;
171
172 // Token: 0x02000073 RID: 115
174 [Serializable]
175 private sealed class <>c
176 {
177 // Token: 0x06000561 RID: 1377 RVA: 0x00010B90 File Offset: 0x0000ED90
178 // Note: this type is marked as 'beforefieldinit'.
179 static <>c()
180 {
181 }
182
183 // Token: 0x06000562 RID: 1378 RVA: 0x00010BA0 File Offset: 0x0000EDA0
184 public <>c()
185 {
186 }
187
188 // Token: 0x06000563 RID: 1379 RVA: 0x00010BB4 File Offset: 0x0000EDB4
189 internal void <OnEnable>b__4_1(InputDevice inputDevice)
190 {
191 string <Name>k__BackingField = inputDevice.<Name>k__BackingField;
192 Debug.Log("Attached: " + <Name>k__BackingField);
193 }
194
195 // Token: 0x06000564 RID: 1380 RVA: 0x00010BD8 File Offset: 0x0000EDD8
196 internal void <OnEnable>b__4_2(InputDevice inputDevice)
197 {
198 string <Name>k__BackingField = inputDevice.<Name>k__BackingField;
199 Debug.Log("Detached: " + <Name>k__BackingField);
200 }
201
202 // Token: 0x06000565 RID: 1381 RVA: 0x00010BFC File Offset: 0x0000EDFC
203 internal void <OnEnable>b__4_3(InputDevice inputDevice)
204 {
205 string <Name>k__BackingField = inputDevice.<Name>k__BackingField;
206 Debug.Log("Active device changed to: " + <Name>k__BackingField);
207 }
208
209 // Token: 0x04000405 RID: 1029
210 public static readonly TestInputManager.<>c <>9;
211
212 // Token: 0x04000406 RID: 1030
213 public static Action<InputDevice> <>9__4_1;
214
215 // Token: 0x04000407 RID: 1031
216 public static Action<InputDevice> <>9__4_2;
217
218 // Token: 0x04000408 RID: 1032
219 public static Action<InputDevice> <>9__4_3;
220 }
221 }
222}
class f__AnonymousType0<< Count > j__TPar
TwoAxisInputControl Direction
static InputDevice ActiveDevice
readonly List< LogMessage > logMessages
void HandleInputUpdate(ulong updateTick, float deltaTime)
void< OnEnable > b__4_0(LogMessage logMessage)
static void LoadScene(string sceneName)
Definition Utility.cs:441
static void Log(object message)
Definition Debug.cs:51
GUIStyleState normal
Definition GUIStyle.cs:231
static GUISkin skin
Definition GUI.cs:41
static bool GetKey(KeyCode key)
Definition Input.cs:85
static float GetAxisRaw(string axisName)
Definition Input.cs:34
static string[] GetJoystickNames()
Definition Input.cs:72
static bool GetKeyDown(KeyCode key)
Definition Input.cs:97
static int width
Definition Screen.cs:17