title: C++ OpenGL Pong ball moving too fast
body: <p>Im trying to create a simple pong game in C++ using opengl. I have the borders displaying on the screen, the paddles, the ball, and all of them move, so that's great! The problem is that the ball moves lightning fast even at one pixel of speed. </p>
  
  <p>Im updating it's position in a call-back function called init which I then pass into glutIdleFunc like so: <code>glutIdleFunc(idle);</code></p>
  
  <p>the idle function is as follows:</p>
  
  <pre><code>void idle(){
      ball.moveLeft();
  
      glutPostRedisplay();
  }
  </code></pre>
  
  <p>essentially im just having it move left by one pixel but, I guess that idle gets called a lot so it moves lightning fast. How do I fix this error?</p>
  
  <p>If there's more information you need just ask!</p>