help with mouse

I am developing a simple 3d environment in which i want to walk through freely. I need to be able to look in all directions, and I was hoping to use the mouse track ball to do that for me. How do I set that up?

Here are a few mouse functions.
glutMouseFunc
glutMotionFunc
glutPassiveMotionFunc

For more examples of programming Opengl http://nehe.gamedev.net

Originally posted by Eclipix:
I am developing a simple 3d environment in which i want to walk through freely. I need to be able to look in all directions, and I was hoping to use the mouse track ball to do that for me. How do I set that up?