Ejemplo n.º 1
0
        protected InputSystem(ILayoutSystem layoutSystem, KeyboardInputManager keyboardInputManager = null)
        {
            this.m_LayoutSystem = layoutSystem;

            this.m_MouseDownElements = new LightList <UIElement>();
            this.m_ElementsThisFrame = new List <UIElement>();
            this.m_ElementsLastFrame = new List <UIElement>();
            this.m_EnteredElements   = new List <UIElement>();
            this.m_ExitedElements    = new List <UIElement>();
            this.m_ActiveElements    = new List <UIElement>();

            this.m_KeyboardEventTree     = new SkipTree <UIElement>();
            this.keyboardInputManager    = keyboardInputManager ?? new KeyboardInputManager();
            this.m_EventPropagator       = new EventPropagator();
            this.m_MouseEventCaptureList = new List <ValueTuple <object, UIElement> >();
            // this.m_DragEventCaptureList = new List<ValueTuple<DragEventHandler, UIElement>>();
            this.m_FocusedElement = null;
            this.focusables       = new List <IFocusable>();
            this.hoveredElements  = new LightList <UIElement>(16);
        }
Ejemplo n.º 2
0
 public MockInputSystem(ILayoutSystem layoutSystem) : base(layoutSystem, new MockKeyboardInputManager())
 {
 }
Ejemplo n.º 3
0
 public GameInputSystem(ILayoutSystem layoutSystem, KeyboardInputManager keyboardInputManager) : base(layoutSystem, keyboardInputManager)
 {
 }