public bool Pressed(InputBind input) { foreach (int i in input.IDs) { if (Pressed(i)) return true; } return false; }
public bool Up(InputBind input) { foreach (int i in input.IDs) { if (Up(i)) return true; } return false; }
public void AddBind(string name, InputBind i) { if (i.IDs.Length > 8) i.IDs = new int[8] { i.IDs[0], i.IDs[1], i.IDs[2], i.IDs[3], i.IDs[4], i.IDs[5], i.IDs[6], i.IDs[7] }; if (i.IDs.Length < 1) { return; } if (Binds.ContainsKey(name)) { return; } Binds.Add(name, new InputBind(i.IDs)); }