Пример #1
0
        public FCgDelegateHandle Bind(FECgInputAction action, ECgInputEvent e, FCgMulticastDelegate.Event del)
        {
            Dictionary <FECgInputAction, FCgKeyInputHandler> map = HandlerMap[(byte)e];

            FCgKeyInputHandler handle = null;
            bool found = map.TryGetValue(action, out handle);

            if (found)
            {
                return(handle.Add(del));
            }
            else
            {
                handle = new FCgKeyInputHandler(action);

                map.Add(action, handle);
                return(handle.Add(del));
            }
        }
Пример #2
0
 public FCgDelegateHandle Add(FCgMulticastDelegate.Event e)
 {
     return(Event.Add(e));
 }