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

◆ SubmitControlState()

override void InControl.TouchButtonControl.SubmitControlState ( ulong updateTick,
float deltaTime )
inline

Definition at line 57 of file TouchButtonControl.cs.

58 {
60 int num;
61 for (;;)
62 {
63 bool flag = this.pressureSensitive;
64 touch = this.currentTouch;
65 if (flag)
66 {
67 if (touch != null)
68 {
69 break;
70 }
71 if (this.allowSlideToggle)
72 {
73 goto Block_3;
74 }
75 }
76 else
77 {
78 if (num != 0)
79 {
80 goto Block_2;
81 }
82 if (this.allowSlideToggle)
83 {
84 goto Block_4;
85 }
86 }
87 }
88 float maximumPossiblePressure = touch.maximumPossiblePressure;
89 float pressure = touch.pressure;
90 bool flag2 = this.buttonState;
91 TouchSprite touchSprite = this.button;
92 this.buttonState = false;
93 bool state = touchSprite.state;
94 touchSprite.state = false;
95 num = 1;
96 touchSprite.<Dirty>k__BackingField = num != 0;
98 return;
99 Block_2:
101 bool flag3 = this.buttonState;
102 return;
103 Block_3:
104 int touchCount = TouchManager.TouchCount;
105 Touch touch2 = TouchManager.GetTouch(0);
106 TouchSprite touchSprite2 = this.button;
107 bool flag4 = touchSprite2.Contains(touch2);
108 float maximumPossiblePressure2 = touch2.maximumPossiblePressure;
109 float pressure2 = touch2.pressure;
110 if (touchSprite2 == null)
111 {
112 }
113 float num2 = Utility.Max(deltaTime, deltaTime);
114 return;
115 Block_4:
116 if (this.buttonState)
117 {
118 TouchSprite touchSprite3 = this.button;
119 if (touchSprite3.state)
120 {
121 int num3 = 256;
123 }
124 }
125 int touchCount2 = TouchManager.TouchCount;
126 bool flag5 = this.buttonState;
127 }
class f__AnonymousType0<< Count > j__TPar
TouchControl.ButtonTarget target
bool Contains(Vector2 testWorldPoint)
float maximumPossiblePressure
Definition Touch.cs:202

References InControl.TouchButtonControl.allowSlideToggle, InControl.TouchButtonControl.button, InControl.TouchButtonControl.buttonState, InControl.TouchSprite.Contains(), InControl.TouchButtonControl.currentTouch, InControl.TouchManager.GetTouch(), j__TPar, InControl.Utility.Max(), InControl.Touch.maximumPossiblePressure, InControl.TouchButtonControl.pressureSensitive, InControl.TouchSprite.state, System.state, InControl.TouchButtonControl.target, and InControl.TouchManager.TouchCount.