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

SetMouseDeviceX() private method

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