Esempio n. 1
0
        public override bool ProcessMouse(MouseConsoleState state)
        {
            // Check the scroll bar for mouse info first. If mouse not handled by scroll bar, then..

            // Create a mouse state based on the controlsHost
            if (!_controlsHost.ProcessMouse(new MouseConsoleState(_controlsHost, state.Mouse)))
            {
                // Process this console normally.
                return(_mainConsole.ProcessMouse(state));
            }

            return(false);
        }
Esempio n. 2
0
        public override bool ProcessMouse(MouseConsoleState state)
        {
            // Process mouse for each console
            var childState = new MouseConsoleState(mainView, state.Mouse);

            if (childState.IsOnConsole)
            {
                return(mainView.ProcessMouse(childState));
            }

            childState = new MouseConsoleState(subView, state.Mouse);

            if (childState.IsOnConsole)
            {
                return(subView.ProcessMouse(childState));
            }

            return(false);
        }