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

◆ ProcessLeftStick()

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

Definition at line 700 of file InputDevice.cs.

701 {
702 InputControl control;
703 if (this.cachedLeftStickLeft == null)
704 {
705 control = this.GetControl(InputControlType.LeftStickLeft);
706 this.cachedLeftStickLeft = control;
707 }
708 if (control.enabled && control.ownerEnabled)
709 {
710 float rawValue = control.nextState.RawValue;
711 }
712 InputControl control2;
713 if (this.cachedLeftStickRight == null)
714 {
715 control2 = this.GetControl(InputControlType.LeftStickRight);
717 }
718 bool ownerEnabled;
719 if (control2.enabled)
720 {
721 ownerEnabled = control2.ownerEnabled;
722 if (ownerEnabled)
723 {
724 float rawValue2 = control2.nextState.RawValue;
725 }
726 }
727 if (!ownerEnabled)
728 {
729 }
730 InputControl control3;
731 if (this.cachedLeftStickDown == null)
732 {
733 control3 = this.GetControl(InputControlType.LeftStickDown);
735 }
736 if (control3.enabled && control3.ownerEnabled)
737 {
738 float rawValue3 = control3.nextState.RawValue;
739 }
740 InputControl control4;
741 if (this.cachedLeftStickUp == null)
742 {
743 control4 = this.GetControl(InputControlType.LeftStickUp);
745 }
746 bool ownerEnabled2;
747 if (control4.enabled)
748 {
749 ownerEnabled2 = control4.ownerEnabled;
750 if (ownerEnabled2)
751 {
752 float rawValue4 = control4.nextState.RawValue;
753 }
754 }
755 if (!ownerEnabled2)
756 {
757 }
758 if (!true)
759 {
760 }
761 if (!this.<RawSticks>k__BackingField)
762 {
763 InputControl control5;
764 if (this.cachedLeftStickLeft == null)
765 {
766 control5 = this.GetControl(InputControlType.LeftStickLeft);
768 }
769 if (!control5.Raw)
770 {
771 InputControl control6;
772 if (this.cachedLeftStickRight == null)
773 {
774 control6 = this.GetControl(InputControlType.LeftStickRight);
776 }
777 if (!control6.Raw)
778 {
779 InputControl control7;
780 if (this.cachedLeftStickUp == null)
781 {
782 control7 = this.GetControl(InputControlType.LeftStickUp);
784 }
785 if (!control7.Raw)
786 {
787 InputControl control8;
788 if (this.cachedLeftStickDown == null)
789 {
790 control8 = this.GetControl(InputControlType.LeftStickDown);
792 }
793 if (!control8.Raw)
794 {
795 InputControl control9;
796 if (this.cachedLeftStickLeft == null)
797 {
798 control9 = this.GetControl(InputControlType.LeftStickLeft);
800 }
801 InputControl inputControl = this.cachedLeftStickRight;
802 float lowerDeadZone = control9.lowerDeadZone;
803 InputControl control10;
804 if (inputControl == null)
805 {
806 control10 = this.GetControl(InputControlType.LeftStickRight);
808 }
809 InputControl inputControl2 = this.cachedLeftStickUp;
810 float lowerDeadZone2 = control10.lowerDeadZone;
811 InputControl control11;
812 if (inputControl2 == null)
813 {
814 control11 = this.GetControl(InputControlType.LeftStickUp);
816 }
817 InputControl inputControl3 = this.cachedLeftStickDown;
818 float lowerDeadZone3 = control11.lowerDeadZone;
819 InputControl control12;
820 if (inputControl3 == null)
821 {
822 control12 = this.GetControl(InputControlType.LeftStickDown);
824 }
825 float lowerDeadZone4 = control12.lowerDeadZone;
826 if (control11 == null)
827 {
828 }
829 InputControl control13;
830 if (this.cachedLeftStickLeft == null)
831 {
832 control13 = this.GetControl(InputControlType.LeftStickLeft);
834 }
835 InputControl inputControl4 = this.cachedLeftStickRight;
836 float upperDeadZone = control13.upperDeadZone;
837 InputControl control14;
838 if (inputControl4 == null)
839 {
840 control14 = this.GetControl(InputControlType.LeftStickRight);
842 }
843 InputControl inputControl5 = this.cachedLeftStickUp;
844 float upperDeadZone2 = control14.upperDeadZone;
845 InputControl control15;
846 if (inputControl5 == null)
847 {
848 control15 = this.GetControl(InputControlType.LeftStickUp);
850 }
851 InputControl inputControl6 = this.cachedLeftStickDown;
852 float upperDeadZone3 = control15.upperDeadZone;
853 if (inputControl6 == null)
854 {
855 InputControl control16 = this.GetControl(InputControlType.LeftStickDown);
857 }
858 float upperDeadZone4 = inputControl6.upperDeadZone;
859 DeadZoneFunc deadZoneFunc = this.<LeftStick>k__BackingField.DeadZoneFunc;
860 IntPtr invoke_impl = deadZoneFunc.invoke_impl;
861 IntPtr method_code = deadZoneFunc.method_code;
862 IntPtr method = deadZoneFunc.method;
863 }
864 }
865 }
866 }
867 }
868 TwoAxisInputControl twoAxisInputControl = this.<LeftStick>k__BackingField;
870 float num;
871 float num2;
872 float num3;
873 twoAxisInputControl.UpdateWithAxes(num, num2, updateTick, num3);
874 InputControl inputControl7 = this.cachedLeftStickX;
875 if (inputControl7 != null)
876 {
877 inputControl7.Raw = true;
878 return;
879 }
880 InputControl control17 = this.GetControl(InputControlType.LeftStickX);
882 control17.Raw = true;
883 InputControl control18;
884 if (control17 == null)
885 {
886 control18 = this.GetControl(InputControlType.LeftStickX);
888 }
889 bool flag = control18.UpdateWithValue(num, updateTick, num2);
890 control18.Commit();
891 InputControl inputControl8 = this.cachedLeftStickY;
892 if (inputControl8 != null)
893 {
894 inputControl8.Raw = true;
895 return;
896 }
897 InputControl control19 = this.GetControl(InputControlType.LeftStickY);
899 control19.Raw = true;
900 InputControl control20;
901 if (control19 == null)
902 {
903 control20 = this.GetControl(InputControlType.LeftStickY);
905 }
906 bool flag2 = control20.UpdateWithValue(num2, updateTick, num2);
907 control20.Commit();
908 InputControl inputControl9;
909 if (this.cachedLeftStickLeft == null)
910 {
912 }
913 OneAxisInputControl <Left>k__BackingField = this.<LeftStick>k__BackingField.<Left>k__BackingField;
914 if (<Left>k__BackingField.enabled && <Left>k__BackingField.ownerEnabled)
915 {
916 float value = <Left>k__BackingField.thisState.Value;
917 }
918 inputControl9.SetValue(num2, updateTick);
919 InputControl control21;
920 if (this.cachedLeftStickRight == null)
921 {
922 control21 = this.GetControl(InputControlType.LeftStickRight);
924 }
925 OneAxisInputControl <Right>k__BackingField = this.<LeftStick>k__BackingField.<Right>k__BackingField;
926 if (<Right>k__BackingField.enabled && <Right>k__BackingField.ownerEnabled)
927 {
928 float value2 = <Right>k__BackingField.thisState.Value;
929 }
930 control21.SetValue(num2, updateTick);
931 InputControl control22;
932 if (this.cachedLeftStickUp == null)
933 {
934 control22 = this.GetControl(InputControlType.LeftStickUp);
936 }
937 OneAxisInputControl <Up>k__BackingField = this.<LeftStick>k__BackingField.<Up>k__BackingField;
938 if (<Up>k__BackingField.enabled && <Up>k__BackingField.ownerEnabled)
939 {
940 float value3 = <Up>k__BackingField.thisState.Value;
941 }
942 control22.SetValue(num2, updateTick);
943 InputControl control23;
944 if (this.cachedLeftStickDown == null)
945 {
946 control23 = this.GetControl(InputControlType.LeftStickDown);
948 }
949 OneAxisInputControl <Down>k__BackingField = this.<LeftStick>k__BackingField.<Down>k__BackingField;
950 if (<Down>k__BackingField.enabled && <Down>k__BackingField.ownerEnabled)
951 {
952 float value4 = <Down>k__BackingField.thisState.Value;
953 }
954 control23.SetValue(num2, updateTick);
955 }
class f__AnonymousType0<< Count > j__TPar
InputControl cachedLeftStickY
InputControl cachedLeftStickDown
string< Name > k__BackingField
InputControl cachedLeftStickRight
InputControl GetControl(InputControlType controlType)
TwoAxisInputControl LeftStick
InputControl cachedLeftStickUp
InputControl cachedLeftStickLeft
InputControl cachedLeftStickX

References InControl.InputDevice.cachedLeftStickDown, InControl.InputDevice.cachedLeftStickLeft, InControl.InputDevice.cachedLeftStickRight, InControl.InputDevice.cachedLeftStickUp, InControl.InputDevice.cachedLeftStickX, InControl.InputDevice.cachedLeftStickY, Down, InControl.OneAxisInputControl.enabled, InControl.InputDevice.GetControl(), j__TPar, InControl.InputDevice.k__BackingField, Left, InControl.InputDevice.LeftStick, InControl.OneAxisInputControl.lowerDeadZone, InControl.OneAxisInputControl.nextState, InControl.OneAxisInputControl.ownerEnabled, InControl.InputDevice.RawSticks, InControl.InputControlState.RawValue, Right, Up, InControl.OneAxisInputControl.upperDeadZone, and System.value.

Referenced by InControl.InputDevice.Commit().