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

◆ FixKeysConflict()

static void Terraria.GameInput.PlayerInput.FixKeysConflict ( InputMode inputMode,
List< string > triggers )
inlinestaticprivate

Definition at line 1328 of file PlayerInput.cs.

1329 {
1330 for (int i = 0; i < triggers.Count; i++)
1331 {
1332 for (int j = i + 1; j < triggers.Count; j++)
1333 {
1334 List<string> list = CurrentProfile.InputModes[inputMode].KeyStatus[triggers[i]];
1335 List<string> list2 = CurrentProfile.InputModes[inputMode].KeyStatus[triggers[j]];
1336 foreach (string item in list.Intersect(list2).ToList())
1337 {
1338 list.Remove(item);
1339 list2.Remove(item);
1340 }
1341 }
1342 }
1343 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static PlayerInputProfile CurrentProfile

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, Terraria.GameInput.PlayerInput.CurrentProfile, System.item, System.list, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().

Referenced by Terraria.GameInput.PlayerInput.FixDerpedRebinds().