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

◆ ProcessRightStick()

void InControl.InputDevice.ProcessRightStick ( ulong updateTick,
float deltaTime )
inlineprivateinherited

Definition at line 958 of file InputDevice.cs.

959 {
960 InputControl control;
961 if (this.cachedRightStickLeft == null)
962 {
963 control = this.GetControl(InputControlType.RightStickLeft);
965 }
966 if (control.enabled && control.ownerEnabled)
967 {
968 float rawValue = control.nextState.RawValue;
969 }
970 InputControl control2;
971 if (this.cachedRightStickRight == null)
972 {
973 control2 = this.GetControl(InputControlType.RightStickRight);
975 }
976 bool ownerEnabled;
977 if (control2.enabled)
978 {
979 ownerEnabled = control2.ownerEnabled;
980 if (ownerEnabled)
981 {
982 float rawValue2 = control2.nextState.RawValue;
983 }
984 }
985 if (!ownerEnabled)
986 {
987 }
988 InputControl control3;
989 if (this.cachedRightStickDown == null)
990 {
991 control3 = this.GetControl(InputControlType.RightStickDown);
993 }
994 if (control3.enabled && control3.ownerEnabled)
995 {
996 float rawValue3 = control3.nextState.RawValue;
997 }
998 InputControl control4;
999 if (this.cachedRightStickUp == null)
1000 {
1001 control4 = this.GetControl(InputControlType.RightStickUp);
1003 }
1004 bool ownerEnabled2;
1005 if (control4.enabled)
1006 {
1007 ownerEnabled2 = control4.ownerEnabled;
1008 if (ownerEnabled2)
1009 {
1010 float rawValue4 = control4.nextState.RawValue;
1011 }
1012 }
1013 if (!ownerEnabled2)
1014 {
1015 }
1016 if (!true)
1017 {
1018 }
1019 if (!this.<RawSticks>k__BackingField)
1020 {
1021 InputControl control5;
1022 if (this.cachedRightStickLeft == null)
1023 {
1024 control5 = this.GetControl(InputControlType.RightStickLeft);
1026 }
1027 if (!control5.Raw)
1028 {
1029 InputControl control6;
1030 if (this.cachedRightStickRight == null)
1031 {
1032 control6 = this.GetControl(InputControlType.RightStickRight);
1034 }
1035 if (!control6.Raw)
1036 {
1037 InputControl control7;
1038 if (this.cachedRightStickUp == null)
1039 {
1040 control7 = this.GetControl(InputControlType.RightStickUp);
1042 }
1043 if (!control7.Raw)
1044 {
1045 InputControl control8;
1046 if (this.cachedRightStickDown == null)
1047 {
1048 control8 = this.GetControl(InputControlType.RightStickDown);
1050 }
1051 if (!control8.Raw)
1052 {
1053 InputControl control9;
1054 if (this.cachedRightStickLeft == null)
1055 {
1056 control9 = this.GetControl(InputControlType.RightStickLeft);
1058 }
1059 InputControl inputControl = this.cachedRightStickRight;
1060 float lowerDeadZone = control9.lowerDeadZone;
1061 InputControl control10;
1062 if (inputControl == null)
1063 {
1064 control10 = this.GetControl(InputControlType.RightStickRight);
1066 }
1067 InputControl inputControl2 = this.cachedRightStickUp;
1068 float lowerDeadZone2 = control10.lowerDeadZone;
1069 InputControl control11;
1070 if (inputControl2 == null)
1071 {
1072 control11 = this.GetControl(InputControlType.RightStickUp);
1074 }
1075 InputControl inputControl3 = this.cachedRightStickDown;
1076 float lowerDeadZone3 = control11.lowerDeadZone;
1077 InputControl control12;
1078 if (inputControl3 == null)
1079 {
1080 control12 = this.GetControl(InputControlType.RightStickDown);
1082 }
1083 float lowerDeadZone4 = control12.lowerDeadZone;
1084 if (control11 == null)
1085 {
1086 }
1087 InputControl control13;
1088 if (this.cachedRightStickLeft == null)
1089 {
1090 control13 = this.GetControl(InputControlType.RightStickLeft);
1092 }
1093 InputControl inputControl4 = this.cachedRightStickRight;
1094 float upperDeadZone = control13.upperDeadZone;
1095 InputControl control14;
1096 if (inputControl4 == null)
1097 {
1098 control14 = this.GetControl(InputControlType.RightStickRight);
1100 }
1101 InputControl inputControl5 = this.cachedRightStickUp;
1102 float upperDeadZone2 = control14.upperDeadZone;
1103 InputControl control15;
1104 if (inputControl5 == null)
1105 {
1106 control15 = this.GetControl(InputControlType.RightStickUp);
1108 }
1109 InputControl inputControl6 = this.cachedRightStickDown;
1110 float upperDeadZone3 = control15.upperDeadZone;
1111 InputControl control16;
1112 if (inputControl6 == null)
1113 {
1114 control16 = this.GetControl(InputControlType.RightStickDown);
1116 }
1117 float upperDeadZone4 = control16.upperDeadZone;
1118 DeadZoneFunc deadZoneFunc = this.<RightStick>k__BackingField.DeadZoneFunc;
1119 IntPtr invoke_impl = deadZoneFunc.invoke_impl;
1120 IntPtr method_code = deadZoneFunc.method_code;
1121 IntPtr method = deadZoneFunc.method;
1122 }
1123 }
1124 }
1125 }
1126 }
1127 TwoAxisInputControl twoAxisInputControl = this.<RightStick>k__BackingField;
1129 float num;
1130 float num2;
1131 float num3;
1132 twoAxisInputControl.UpdateWithAxes(num, num2, updateTick, num3);
1133 InputControl inputControl7 = this.cachedRightStickX;
1134 if (inputControl7 != null)
1135 {
1136 inputControl7.Raw = true;
1137 return;
1138 }
1139 InputControl control17 = this.GetControl(InputControlType.RightStickX);
1141 control17.Raw = true;
1142 InputControl control18;
1143 if (control17 == null)
1144 {
1145 control18 = this.GetControl(InputControlType.RightStickX);
1147 }
1148 bool flag = control18.UpdateWithValue(num, updateTick, num2);
1149 control18.Commit();
1150 InputControl inputControl8 = this.cachedRightStickY;
1151 if (inputControl8 != null)
1152 {
1153 inputControl8.Raw = true;
1154 return;
1155 }
1156 InputControl control19 = this.GetControl(InputControlType.RightStickY);
1158 control19.Raw = true;
1159 InputControl control20;
1160 if (control19 == null)
1161 {
1162 control20 = this.GetControl(InputControlType.RightStickY);
1164 }
1165 bool flag2 = control20.UpdateWithValue(num2, updateTick, num2);
1166 control20.Commit();
1167 InputControl control21;
1168 if (this.cachedRightStickLeft == null)
1169 {
1170 control21 = this.GetControl(InputControlType.RightStickLeft);
1172 }
1173 OneAxisInputControl <Left>k__BackingField = this.<RightStick>k__BackingField.<Left>k__BackingField;
1174 if (<Left>k__BackingField.enabled && <Left>k__BackingField.ownerEnabled)
1175 {
1176 float value = <Left>k__BackingField.thisState.Value;
1177 }
1178 control21.SetValue(num2, updateTick);
1179 InputControl control22;
1180 if (this.cachedRightStickRight == null)
1181 {
1182 control22 = this.GetControl(InputControlType.RightStickRight);
1184 }
1185 OneAxisInputControl <Right>k__BackingField = this.<RightStick>k__BackingField.<Right>k__BackingField;
1186 if (<Right>k__BackingField.enabled && <Right>k__BackingField.ownerEnabled)
1187 {
1188 float value2 = <Right>k__BackingField.thisState.Value;
1189 }
1190 control22.SetValue(num2, updateTick);
1191 InputControl control23;
1192 if (this.cachedRightStickUp == null)
1193 {
1194 control23 = this.GetControl(InputControlType.RightStickUp);
1196 }
1197 OneAxisInputControl <Up>k__BackingField = this.<RightStick>k__BackingField.<Up>k__BackingField;
1198 if (<Up>k__BackingField.enabled && <Up>k__BackingField.ownerEnabled)
1199 {
1200 float value3 = <Up>k__BackingField.thisState.Value;
1201 }
1202 control23.SetValue(num2, updateTick);
1203 InputControl control24;
1204 if (this.cachedRightStickDown == null)
1205 {
1206 control24 = this.GetControl(InputControlType.RightStickDown);
1208 }
1209 OneAxisInputControl <Down>k__BackingField = this.<RightStick>k__BackingField.<Down>k__BackingField;
1210 if (<Down>k__BackingField.enabled && <Down>k__BackingField.ownerEnabled)
1211 {
1212 float value4 = <Down>k__BackingField.thisState.Value;
1213 }
1214 control24.SetValue(num2, updateTick);
1215 }
class f__AnonymousType0<< Count > j__TPar
string< Name > k__BackingField
InputControl cachedRightStickY
InputControl GetControl(InputControlType controlType)
InputControl cachedRightStickRight
InputControl cachedRightStickLeft
TwoAxisInputControl RightStick
InputControl cachedRightStickX
InputControl cachedRightStickUp
InputControl cachedRightStickDown

References InControl.InputDevice.cachedRightStickDown, InControl.InputDevice.cachedRightStickLeft, InControl.InputDevice.cachedRightStickRight, InControl.InputDevice.cachedRightStickUp, InControl.InputDevice.cachedRightStickX, InControl.InputDevice.cachedRightStickY, Down, InControl.OneAxisInputControl.enabled, InControl.InputDevice.GetControl(), j__TPar, InControl.InputDevice.k__BackingField, Left, InControl.OneAxisInputControl.lowerDeadZone, InControl.OneAxisInputControl.nextState, InControl.OneAxisInputControl.ownerEnabled, InControl.InputDevice.RawSticks, InControl.InputControlState.RawValue, Right, InControl.InputDevice.RightStick, Up, InControl.OneAxisInputControl.upperDeadZone, and System.value.

Referenced by InControl.InputDevice.Commit().