public void Remove(InputBehavior behavior) { int idx = Behaviors.FindIndex((x) => { return(x.b == behavior); }); if (idx >= 0) { Behaviors.RemoveAt(idx); behaviors_modified(); } }
public void Remove(InputBehaviorSet behaviors) { if (behaviors == null) { return; } foreach (var binfo in behaviors.Behaviors) { int idx = Behaviors.FindIndex((x) => { return(x.b == binfo.b); }); Behaviors.RemoveAt(idx); } behaviors_modified(); }