Пример #1
0
        public static void AddKeyBind(string Name, Keys key)
        {
            ActionMap actionMap = new ActionMap();

            actionMap.ActionName = Name;
            actionMap.keyBroadBinds.Add(key);

            ActionMaps.Add(Name, actionMap);
        }
Пример #2
0
        private static bool IsActionMapTriggered(ActionMap _action)
        {
            for (int i = 0; i < _action.keyBroadBinds.Count; i++)
            {
                if (IsKeyTriggered(_action.keyBroadBinds[i]))
                {
                    return(true);
                }
            }

            return(false);
        }