title: Setting mouse position?
body: <p>Well I'm working on a small program and I'm trying to set the position of the window's mouse to it's center every time it moves. Thing is I have no idea how to make this work. I had the following code:</p>
  
  <pre><code>auto point = new Point(300.0, 200.0);
  //auto ends up being Windows::Foundation::Point;
  </code></pre>
  
  <p>But I could still move the mouse freely all over the screen...</p>
  
  <p>So then I searched the internet a bit and used:</p>
  
  <pre><code>Windows::UI::Input::PointerPoint point = Point(300.0, 200.0);//1
  //and//
  auto point = Windows::UI::Xaml::PointHelper::FromCoordinates(300.0, 200.0);//2
  </code></pre>
  
  <p>And example one wouldn't compile. Example 2 did compile but I could still move the mouse acrros the whole screen.</p>
  
  <p>Don't know if it's important but I'm coding in C++, using DirectX for graphics and XAML for Text. (I'm also using the base class as C++/CX to work with XAML).</p>