title: (Windows C++) How to simulate mouse movement in FPS games?
body: <p>I'm trying to simulate mouse movement in FPS games, more specifically <em>Valorant</em>. I am aware of the
  <code>SetCursorPos()</code> function and the <code>mouse_event()</code> function, which both work fine for changing the cursor's position. This works in FPS games that use the technique of constantly centering the cursor, but <em>Valorant</em> doesn't seem to do that. I wrote a program to constantly check my cursor's position (using <code>GetCursorPos()</code>) and my cursor never got centered, if I moved the mouse to a corner and then kept moving it, my character kept rotating. So, how does <em>Valorant</em> sense that I'm moving my mouse when my cursor's position isn't changing, and how can I counter that and simulate mouse movement in <em>Valorant</em>?</p>
  <p>By the way, don't worry - I'm not trying to cheat, just trying to make smooth motions in freecam for cinematic shots.</p>