PDA

View Full Version : tutorial about MouseHandling



OGforever
11-09-2005, 01:38 AM
Hello..

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

Ciao OG

hazelwood
11-09-2005, 05:21 AM
We need to know at least the following ;)

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

OGforever
11-10-2005, 01:50 AM
We need to know at least the following ;)

- 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

Cheps
11-10-2005, 03:26 AM
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

songho
11-10-2005, 06:00 AM
In addition, glutMotionFunc() allows to handle the cursor movements.