private EventDispatcher(IList <IEventDispatchingStrategy> strategies)
        {
            m_DispatchingStrategies            = new List <IEventDispatchingStrategy>();
            m_DebuggerEventDispatchingStrategy = new DebuggerEventDispatchingStrategy();
            m_DispatchingStrategies.Add(m_DebuggerEventDispatchingStrategy);
            m_DispatchingStrategies.AddRange(strategies);

            m_Queue = k_EventQueuePool.Get();
        }
 private EventDispatcher(IList <IEventDispatchingStrategy> strategies)
 {
     this.< pointerState > k__BackingField = new PointerDispatchState();
     this.m_DispatchContexts = new Stack <EventDispatcher.DispatchContext>();
     this.m_Immediate        = false;
     base..ctor();
     this.m_DispatchingStrategies            = new List <IEventDispatchingStrategy>();
     this.m_DebuggerEventDispatchingStrategy = new DebuggerEventDispatchingStrategy();
     this.m_DispatchingStrategies.Add(this.m_DebuggerEventDispatchingStrategy);
     this.m_DispatchingStrategies.AddRange(strategies);
     this.m_Queue = EventDispatcher.k_EventQueuePool.Get();
 }
Example #3
0
        EventDispatcher()
        {
            m_DispatchingStrategies            = new List <IEventDispatchingStrategy>();
            m_DebuggerEventDispatchingStrategy = new DebuggerEventDispatchingStrategy();
            m_DispatchingStrategies.Add(m_DebuggerEventDispatchingStrategy);
            m_DispatchingStrategies.Add(new MouseCaptureDispatchingStrategy());
            m_DispatchingStrategies.Add(new KeyboardEventDispatchingStrategy());
            m_DispatchingStrategies.Add(new MouseEventDispatchingStrategy());
            m_DispatchingStrategies.Add(new CommandEventDispatchingStrategy());
            m_DispatchingStrategies.Add(new IMGUIEventDispatchingStrategy());
            m_DispatchingStrategies.Add(new DefaultDispatchingStrategy());

            m_Queue = k_EventQueuePool.Get();
        }