Example #1
0
        private void CaptureMousePosition()
        {
            var p = MouseInterop.GetCursorPosition();

            AddSliderValue(Constants.SliderXInputName, p.X, 0, p.X);
            AddSliderValue(Constants.SliderYInputName, p.Y, 0, p.Y);
        }
Example #2
0
 private void CaptureMouseButtons()
 {
     AddButtonValue(Constants.ButtonLeftInputName, MouseInterop.IsLeftMousePressed());
     AddButtonValue(Constants.ButtonRightInputName, MouseInterop.IsRightMousePressed());
     AddButtonValue(Constants.ButtonMiddleInputName, MouseInterop.IsMiddleMousePressed());
 }