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); }
public MockInputSystem(ILayoutSystem layoutSystem) : base(layoutSystem, new MockKeyboardInputManager()) { }
public GameInputSystem(ILayoutSystem layoutSystem, KeyboardInputManager keyboardInputManager) : base(layoutSystem, keyboardInputManager) { }