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

◆ Initialize() [2/2]

void InControl.NativeInputDevice.Initialize ( uint deviceHandle,
InputDeviceInfo deviceInfo,
InputDeviceProfile deviceProfile )
inlinepackage

Definition at line 60 of file NativeInputDevice.cs.

61 {
62 int num = 1;
64 string serialNumber = deviceInfo.serialNumber;
66 this.<Info>k__BackingField.serialNumber = serialNumber;
67 this.<SortOrder>k__BackingField = num;
68 uint numAnalogs = this.<Info>k__BackingField.numAnalogs;
69 int num2;
71 int num3 = 20;
72 int num4 = Math.Min((int)numAnalogs, num3);
74 uint numButtons = this.<Info>k__BackingField.numButtons;
75 uint numAnalogs2 = this.<Info>k__BackingField.numAnalogs;
76 base.ClearInputState();
77 base.ClearControls();
78 InputDeviceProfile inputDeviceProfile = this.profile;
79 InputDeviceInfo inputDeviceInfo = this.<Info>k__BackingField;
80 string deviceName = inputDeviceProfile.deviceName;
81 this.<Name>k__BackingField = this;
82 string text2;
83 string text = text2.Trim();
84 InputDeviceProfile inputDeviceProfile2 = this.profile;
85 this.<Name>k__BackingField = text;
86 InputDeviceInfo inputDeviceInfo2;
87 if (inputDeviceProfile2.deviceNotes == null)
88 {
90 }
91 this.<Meta>k__BackingField = inputDeviceInfo2;
92 InputDeviceClass deviceClass = inputDeviceProfile2.deviceClass;
93 bool invert = inputDeviceProfile2.analogMappings.invert;
94 string deviceNotes = inputDeviceProfile2.deviceNotes;
95 float sensitivity = this.profile.sensitivity;
96 float lowerDeadZone = this.profile.lowerDeadZone;
97 InputDeviceProfile inputDeviceProfile3 = this.profile;
98 float upperDeadZone = inputDeviceProfile3.upperDeadZone;
99 InputControl inputControl;
102 InputControlMapping[] analogMappings = this.profile.analogMappings;
103 }
class f__AnonymousType0<< Count > j__TPar
InputControlMapping[] analogMappings
static byte Min(byte val1, byte val2)
Definition Math.cs:152

References InControl.InputDeviceProfile.analogMappings, InControl.NativeInputDevice.Handle, InControl.NativeInputDevice.Info, j__TPar, InControl.NativeInputDevice.k__BackingField, InControl.InputDeviceProfile.lowerDeadZone, InControl.InputDevice.Meta, System.Math.Min(), InControl.InputDevice.Name, InControl.InputDeviceInfo.numAnalogs, InControl.InputDeviceInfo.numButtons, InControl.NativeInputDevice.profile, InControl.InputDeviceProfile.sensitivity, InControl.InputDevice.SortOrder, System.text, and InControl.InputDeviceProfile.upperDeadZone.

Referenced by InControl.NativeInputDevice.Initialize().