title: freeglut - a smooth camera rotation using mouse
body: <p>When I rotate my fps camera using mouse the animation is not smooth. When I use a keyboard everything works nice. For keyboard I use an array of type bool to buffer keys. What Can I do to make the animation smooth when using mouse ? </p>
  
  <pre><code>void MousePassiveMotion(int x, int y)
  {
       int centerX = glutGet(GLUT_WINDOW_WIDTH) / 2;
       int centerY = glutGet(GLUT_WINDOW_HEIGHT) / 2;
  
       int deltaX =  x - centerX;
       int deltaY =  y - centerY;
  
       if(deltaX != 0 || deltaY != 0) 
       {
            heading = deltaX * 0.2f;
            pitch = deltaY  * 0.2f;
            glutWarpPointer(centerX, centerY);
       }
  }
  </code></pre>