Example #1
0
        public InputProcessor(Window window, UIElement inputElement)
        {
            _window = window;
            _inputElement = inputElement;

            window.EnableSurfaceInput();

            inputElement.MouseDown += root_MouseDown;
            inputElement.MouseUp   += root_MouseUp;
            inputElement.MouseMove += root_MouseMove;

            inputElement.TouchDown += root_TouchDown;
            inputElement.TouchMove += root_TouchMove;
            inputElement.TouchUp   += root_TouchUp;
        }