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.
1
using
System
;
2
using
InControl
;
3
using
UnityEngine
;
4
5
namespace
InterfaceMovement
6
{
7
// Token: 0x0200000C RID: 12
8
public
class
ButtonManager
:
MonoBehaviour
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
}
21
InputDevice
activeDevice =
InputManager
.
ActiveDevice
;
22
TwoAxisInputControl
twoAxisInputControl
= this.
filteredDirection
;
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
42
private
void
MoveFocusTo
(
Button
newFocusedButton
)
43
{
44
if
(!
true
)
45
{
46
}
47
bool
flag =
newFocusedButton
!=
newFocusedButton
;
48
this.focusedButton
=
newFocusedButton
;
49
}
50
51
// Token: 0x06000041 RID: 65 RVA: 0x00002E88 File Offset: 0x00001088
52
public
ButtonManager
()
53
{
54
}
55
56
// Token: 0x04000027 RID: 39
57
public
Button
focusedButton
;
58
59
// Token: 0x04000028 RID: 40
60
private
TwoAxisInputControl
filteredDirection
;
61
}
62
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
GUIControllerNavigationDirections.Down
@ Down
GUIControllerNavigationDirections.Up
@ Up
GUIControllerNavigationDirections.Right
@ Right
GUIControllerNavigationDirections.Left
@ Left
InControl.InputDevice.Direction
TwoAxisInputControl Direction
Definition
InputDevice.cs:1810
InControl.InputDevice
Definition
InputDevice.cs:12
InControl.InputManager.ActiveDevice
static InputDevice ActiveDevice
Definition
InputManager.cs:956
InControl.InputManager
Definition
InputManager.cs:11
InControl.TwoAxisInputControl.WasPressed
bool WasPressed
Definition
TwoAxisInputControl.cs:498
InControl.TwoAxisInputControl
Definition
TwoAxisInputControl.cs:10
InterfaceMovement.ButtonManager.focusedButton
Button focusedButton
Definition
ButtonManager.cs:57
InterfaceMovement.ButtonManager.ButtonManager
ButtonManager()
Definition
ButtonManager.cs:52
InterfaceMovement.ButtonManager.Awake
void Awake()
Definition
ButtonManager.cs:11
InterfaceMovement.ButtonManager.MoveFocusTo
void MoveFocusTo(Button newFocusedButton)
Definition
ButtonManager.cs:42
InterfaceMovement.ButtonManager.Update
void Update()
Definition
ButtonManager.cs:16
InterfaceMovement.ButtonManager.filteredDirection
TwoAxisInputControl filteredDirection
Definition
ButtonManager.cs:60
InterfaceMovement.ButtonManager
Definition
ButtonManager.cs:9
InterfaceMovement.Button.up
Button up
Definition
Button.cs:32
InterfaceMovement.Button.down
Button down
Definition
Button.cs:35
InterfaceMovement.Button.left
Button left
Definition
Button.cs:38
InterfaceMovement.Button.right
Button right
Definition
Button.cs:41
InterfaceMovement.Button
Definition
Button.cs:8
UnityEngine.MonoBehaviour
Definition
MonoBehaviour.cs:15
UnityEngine.Time.deltaTime
static float deltaTime
Definition
Time.cs:14
UnityEngine.Time
Definition
Time.cs:10
InControl
Definition
BindingListenOptions.cs:4
InterfaceMovement
Definition
Button.cs:5
System
Definition
__ComObject.cs:4
UnityEngine
Definition
_AndroidJNIHelper.cs:6
source
InControl.Examples
InterfaceMovement
ButtonManager.cs
Generated by
1.10.0