tutorial about MouseHandling

Hello…

I’m looking for tutorial about MouseHandling
I couldn’t find any
Can you recommend a beginner’s tutorial (with mousehandling…)

Ciao OG

We need to know at least the following :wink:

  • what language you are using.
  • what operating system you are writing this for.
  • what library you are using (SDL,GLUT or just plain OpenGL,…)

We need to know at least the following :wink:

  • what language you are using.
  • C
  • what operating system you are writing this for.
  • UNIX
  • what library you are using (SDL,GLUT or just plain OpenGL,…)
  • GLUT

Then you should use the glutMouseFunc callback, the same way you use glutDisplayFunc for displaying.

http://www.opengl.org/resources/libraries/glut/spec3/node50.html

In addition, glutMotionFunc() allows to handle the cursor movements.