Artemis.Engine.Input.ControlScheme.operator C# (CSharp) Method

operator() public static method

public static operator ( ) : ControlScheme
return ControlScheme
        public static ControlScheme operator |(ControlScheme a, ControlScheme b)
        {
            var newKeys = new Dictionary<Keys, ControlIntent>();
            foreach (var kvp in a.KeyIntents)
            {
                newKeys.Add(kvp.Key, kvp.Value);
            }
            foreach (var kvp in b.KeyIntents)
            {
                newKeys.Add(kvp.Key, kvp.Value);
            }
            return new ControlScheme(newKeys);
        }