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
ButtonManager.cs
Go to the documentation of this file.
1using System;
2using InControl;
3using UnityEngine;
4
5namespace InterfaceMovement
6{
7 // Token: 0x0200000C RID: 12
9 {
10 // Token: 0x0600003E RID: 62 RVA: 0x00002D70 File Offset: 0x00000F70
11 private void Awake()
12 {
13 }
14
15 // Token: 0x0600003F RID: 63 RVA: 0x00002D80 File Offset: 0x00000F80
16 private void Update()
17 {
18 if (!true)
19 {
20 }
23 TwoAxisInputControl direction = activeDevice.Direction;
24 float deltaTime = Time.deltaTime;
25 twoAxisInputControl.Filter(direction, deltaTime);
26 bool wasRepeated = this.filteredDirection.<Left>k__BackingField.WasRepeated;
27 bool wasPressed = this.filteredDirection.<Up>k__BackingField.WasPressed;
28 Button up = this.focusedButton.up;
29 this.MoveFocusTo(up);
30 bool wasPressed2 = this.filteredDirection.<Down>k__BackingField.WasPressed;
31 Button down = this.focusedButton.down;
32 this.MoveFocusTo(down);
33 bool wasPressed3 = this.filteredDirection.<Left>k__BackingField.WasPressed;
34 Button left = this.focusedButton.left;
35 this.MoveFocusTo(left);
36 bool wasPressed4 = this.filteredDirection.<Right>k__BackingField.WasPressed;
37 Button right = this.focusedButton.right;
38 this.MoveFocusTo(right);
39 }
40
41 // Token: 0x06000040 RID: 64 RVA: 0x00002E68 File Offset: 0x00001068
43 {
44 if (!true)
45 {
46 }
49 }
50
51 // Token: 0x06000041 RID: 65 RVA: 0x00002E88 File Offset: 0x00001088
53 {
54 }
55
56 // Token: 0x04000027 RID: 39
58
59 // Token: 0x04000028 RID: 40
61 }
62}
class f__AnonymousType0<< Count > j__TPar
TwoAxisInputControl Direction
static InputDevice ActiveDevice
void MoveFocusTo(Button newFocusedButton)
TwoAxisInputControl filteredDirection
static float deltaTime
Definition Time.cs:14