Ejemplo n.º 1
0
        public FCgDelegateHandle AddObject(object o, Event e)
        {
            FCgDelegateHandle handle = new FCgDelegateHandle(o, "", Guid.NewGuid());

            InvocationMap.Add(handle, e);
            return(handle);
        }
Ejemplo n.º 2
0
        public bool UnBind(ECgInputEvent e, FCgDelegateHandle handle)
        {
            Dictionary <FECgInputAction, FCgKeyInputHandler> map = HandlerMap[(byte)e];

            Dictionary <FECgInputAction, FCgKeyInputHandler> .ValueCollection handles = map.Values;

            bool success = false;

            foreach (FCgKeyInputHandler h in handles)
            {
                success |= h.Remove(handle);
            }
            return(success);
        }
Ejemplo n.º 3
0
 public bool Remove(FCgDelegateHandle handle)
 {
     return(InvocationMap.Remove(handle));
 }
Ejemplo n.º 4
0
 public bool Remove(FCgDelegateHandle handle)
 {
     return(Event.Remove(handle));
 }