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

◆ UnityInputDevice() [2/2]

InControl.UnityInputDevice.UnityInputDevice ( InputDeviceProfile deviceProfile,
int joystickId,
string joystickName )
inline

Definition at line 69 of file UnityInputDevice.cs.

70 {
71 int num = 1;
72 if (num == 0)
73 {
74 }
75 base..ctor();
78 if (joystickId != 0)
79 {
80 if (num == 0)
81 {
82 }
83 this.<SortOrder>k__BackingField = num;
84 }
85 UnityInputDevice.SetupAnalogQueries();
86 UnityInputDevice.SetupButtonQueries();
87 if (num == 0)
88 {
89 }
90 string deviceName = this.profile.deviceName;
91 InputDeviceProfile inputDeviceProfile = this.profile;
92 this.<Name>k__BackingField = deviceName;
93 string deviceNotes = inputDeviceProfile.deviceNotes;
94 this.<Meta>k__BackingField = deviceNotes;
95 InputDeviceClass deviceClass = inputDeviceProfile.deviceClass;
96 bool invert = inputDeviceProfile.analogMappings.invert;
97 string deviceNotes2 = inputDeviceProfile.deviceNotes;
98 if (inputDeviceProfile == null)
99 {
100 }
101 string text;
102 string text2;
103 if (("Cannot map control \"" == null || "Cannot map control \"" != null) && (text == null || text != null) && ("\" as InputControlType." == null || "\" as InputControlType." != null) && (text2 == null || text2 != null) && (" in profile \"" == null || " in profile \"" != null))
104 {
105 string deviceName2 = deviceProfile.deviceName;
106 if ((deviceName2 == null || deviceName2 != null) && ("\" because this target is reserved as an alias. The mapping will be ignored." == null || "\" because this target is reserved as an alias. The mapping will be ignored." != null))
107 {
108 string text3;
110 return;
111 }
112 }
113 throw new ArrayTypeMismatchException();
114 }
class f__AnonymousType0<< Count > j__TPar
UnityInputDevice(int joystickId, string joystickName)
readonly InputDeviceProfile profile
int< JoystickId > k__BackingField
static void LogError(object message)
Definition Debug.cs:62

References InControl.InputDeviceProfile.deviceName, j__TPar, InControl.UnityInputDevice.k__BackingField, UnityEngine.Debug.LogError(), InControl.InputDevice.Meta, InControl.InputDevice.Name, InControl.UnityInputDevice.profile, InControl.UnityInputDevice.SetupAnalogQueries(), InControl.UnityInputDevice.SetupButtonQueries(), InControl.InputDevice.SortOrder, and System.text.