Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FixDerpedRebinds()

static void Terraria.GameInput.PlayerInput.FixDerpedRebinds ( )
inlinestaticprivate

Definition at line 1308 of file PlayerInput.cs.

1309 {
1310 List<string> list = new List<string> { "MouseLeft", "MouseRight", "Inventory" };
1311 foreach (InputMode value in Enum.GetValues(typeof(InputMode)))
1312 {
1313 if (value == InputMode.Mouse)
1314 {
1315 continue;
1316 }
1318 foreach (string item in list)
1319 {
1320 if (CurrentProfile.InputModes[value].KeyStatus[item].Count < 1)
1321 {
1323 }
1324 }
1325 }
1326 }
static Array GetValues(Type enumType)
Definition Enum.cs:323
static void FixKeysConflict(InputMode inputMode, List< string > triggers)
static PlayerInputProfile CurrentProfile
static void ResetKeyBinding(InputMode inputMode, string trigger)

References Terraria.GameInput.PlayerInput.CurrentProfile, Terraria.GameInput.PlayerInput.FixKeysConflict(), System.Enum.GetValues(), System.item, System.list, Terraria.GameInput.PlayerInput.ResetKeyBinding(), and System.value.

Referenced by Terraria.GameInput.PlayerInput.CheckRebindingProcessGamepad(), and Terraria.GameInput.PlayerInput.CheckRebindingProcessKeyboard().