title: Raw Input and cursor acceleration
body: <p>I'm currently implementing mouse input using Raw input.
  The disadvantage though is, that pointer ballistic is not included. Unfortunately microsoft's website dealing with this topic is not online any more. Furthermore I can't find a function retrieving the pointer acceleration set in windows (maybe I'm too stupid).</p>
  
  <p>How do I get the acceleration and how do I use it to calculate the new intuitive cursor position out of the raw x and y offset?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So concerning the documentation IInspectable posted in his comment, the code for calculating the acceleration would be:</p>
  
  <pre><code>    long xPos = raw-&gt;data.mouse.lLastX;
      long yPos = raw-&gt;data.mouse.lLastY;
  
      int speed;
      int acceleration[3];
      SystemParametersInfo(SPI_GETMOUSESPEED, 0, &amp;speed, 0);
      SystemParametersInfo(SPI_GETMOUSE, 0, acceleration, 0);
  
  
      if (acceleration[2] &gt; 0 &amp;&amp; acceleration[0] &lt; abs(raw-&gt;data.mouse.lLastX))
          xPos *= 2;
      else if (acceleration[2] &gt; 1 &amp;&amp; acceleration[1] &lt; abs(raw-&gt;data.mouse.lLastX))
          xPos *= 2;
  
      if (acceleration[2] &gt; 0 &amp;&amp; acceleration[0] &lt; abs(raw-&gt;data.mouse.lLastX))
          yPos *= 2;
      else if (acceleration[2] &gt; 1 &amp;&amp; acceleration[1] &lt; abs(raw-&gt;data.mouse.lLastX))
          yPos *= 2;
  
  
      xPos *= round((float)speed / 10.0f);
      yPos *= round((float)speed / 10.0f);
  </code></pre>
  
  <p>Am I right, is this how to add acceleration to the raw mouse input?</p>
  
  <p>Strange is, that when I retrieve acceleration with SystemParametersInfo and SPI_GETMOUSE the values stay at {6, 10, 1} even if I change the pointer acceleration in windows.</p>