void PopulateKeyCodeOverlapSet(ActionMap comparedAction, KeyCode kc) { foreach (KeyValuePair <string, ActionMap> action in actions) { if (comparedAction.Equals(action.Value)) { continue; } if (kc == action.Value.keyCode || kc == action.Value.keyCodeAlt) { overlappingKeycodes.Add(kc); break; } } }
public bool Equals(CubeAction obj) { if (null == obj) { return(false); } VerifySetupAccelerationMap(); obj.VerifySetupAccelerationMap(); bool?opsEqual = null; bool?mapEqual = null; if (Utils.ShouldVerify()) { opsEqual = EqualOps(obj); } if (AccelerationMap != null && obj.AccelerationMap != null) { mapEqual = AccelerationMap.Equals(obj.AccelerationMap); } if (opsEqual.HasValue && mapEqual.HasValue) { Utils.DebugAssert(opsEqual == mapEqual); return(mapEqual.Value); } else if (mapEqual.HasValue) { return(mapEqual.Value); } else if (opsEqual.HasValue) { return(opsEqual.Value); } else { bool actEqual = EqualAct(obj); return(actEqual); } }