title: GLUT mouse move , coordinates always on
body: <p>How to get the mouse coordinates always, without click on mouse? </p>
  
  <pre><code>void mouseMove(int mx, int my) {
  
  }
  
  int main(int argc, char ** argv){
      glutInit( &amp;argc, argv );
      glutInitWindowSize( x, y );
      glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH );
      glutCreateWindow( "Freetype OpenGL" );
      glutReshapeFunc( reshape );
      glutDisplayFunc( display );
      glutKeyboardFunc(keyboard);
      glutMotionFunc(mouseMove);
      timer();
      glutMainLoop( );
      return 0;
  };
  </code></pre>