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;
}