Duality.Launcher.DualityLauncher.SetMouseDeviceY C# (CSharp) Method

SetMouseDeviceY() private method

private SetMouseDeviceY ( int y ) : void
y int
return void
        private void SetMouseDeviceY(int y)
        {
            if (!this.Focused) return;
            Point curPos;
            NativeMethods.GetCursorPos(out curPos);
            Point targetPos = this.PointToScreen(new Point(this.PointToClient(curPos).X, y));
            NativeMethods.SetCursorPos(targetPos.X, targetPos.Y);
            return;
        }