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
VirtualDeviceExample.cs
Go to the documentation of this file.
1using System;
3using InControl;
4using UnityEngine;
5
7{
8 // Token: 0x02000003 RID: 3
10 {
11 // Token: 0x06000008 RID: 8 RVA: 0x000022A4 File Offset: 0x000004A4
12 private void OnEnable()
13 {
14 if (!true)
15 {
16 }
17 }
18
19 // Token: 0x06000009 RID: 9 RVA: 0x000022B4 File Offset: 0x000004B4
20 private void OnDisable()
21 {
22 VirtualDevice virtualDevice = this.virtualDevice;
23 if (!true)
24 {
25 }
26 InputManager.DetachDevice(virtualDevice);
27 }
28
29 // Token: 0x0600000A RID: 10 RVA: 0x000022D4 File Offset: 0x000004D4
30 private void Update()
31 {
32 if (!true)
33 {
34 }
36 Transform transform = this.leftObject.transform;
37 float deltaTime = Time.deltaTime;
38 float num = activeDevice.LeftStickX;
39 Transform transform2 = this.leftObject.transform;
41 float num2 = activeDevice.LeftStickY;
42 Transform transform3 = this.rightObject.transform;
44 float num3 = activeDevice.RightStickX;
45 Transform transform4 = this.rightObject.transform;
47 float num4 = activeDevice.RightStickY;
48 bool isPressed = activeDevice.Action1.IsPressed;
49 bool isPressed2 = activeDevice.Action2.IsPressed;
50 bool isPressed3 = activeDevice.Action3.IsPressed;
51 bool isPressed4 = activeDevice.Action4.IsPressed;
52 Material material = this.leftObject.GetComponent<Renderer>().material;
53 }
54
55 // Token: 0x0600000B RID: 11 RVA: 0x000023C0 File Offset: 0x000005C0
57 {
58 }
59
60 // Token: 0x0600000C RID: 12 RVA: 0x000023D4 File Offset: 0x000005D4
63 {
64 VirtualDevice virtualDevice = this.virtualDevice;
65 if (!true)
66 {
67 }
68 InputManager.AttachDevice(virtualDevice);
69 }
70
71 // Token: 0x04000007 RID: 7
73
74 // Token: 0x04000008 RID: 8
76
77 // Token: 0x04000009 RID: 9
79 }
80}
class f__AnonymousType0<< Count > j__TPar
InputControl RightStickX
InputControl RightStickY
InputControl LeftStickX
InputControl LeftStickY
static void AttachDevice(InputDevice inputDevice)
static InputDevice ActiveDevice
static void DetachDevice(InputDevice inputDevice)
static float deltaTime
Definition Time.cs:14